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
- Host: GitHub
- URL: https://github.com/exfriend/frame-validator
- Owner: exfriend
- Created: 2017-07-26T10:45:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T08:16:54.000Z (about 7 years ago)
- Last Synced: 2025-01-11T22:45:17.959Z (5 months ago)
- Topics: checker, frame, iframe, php, php-library, validation
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!