An open API service indexing awesome lists of open source software.

https://github.com/exfriend/frame-validator

Detect whether URL can be embedded in an iframe
https://github.com/exfriend/frame-validator

checker frame iframe php php-library validation

Last synced: 3 months ago
JSON representation

Detect whether URL can be embedded in an iframe

Awesome Lists containing this project

README

        

# Frame Validator
Library used to check urls and tell whether they can be embedded using iframe by any website, according to the server response headers.

## Installation

```
composer require exfriend/frame-validator
```

## Usage

```
supportsIframes() )
{
echo 'frameable';
}
else
{
echo 'unframeable';
}

```

### Overriding curl options

```
withCurlOptions( [
CURLOPT_TIMEOUT => 10,
CURLOPT_CONNECTTIMEOUT => 5,
] );

echo $v->supportsIframes();

```

### Contributing

You are welcome!