2017 © Pedro Peláez
 

library frame-validator

Detect whether URL can be embedded in an iframe

image

exfriend/frame-validator

Detect whether URL can be embedded in an iframe

  • Monday, May 21, 2018
  • by exfriend
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

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., (*1)

Installation

 composer require exfriend/frame-validator

Usage

<?php

require 'vendor/autoload.php';

if ( \Exfriend\FrameValidator\Validator::make( 'https://example.com' )->supportsIframes() )
{
    echo 'frameable';
}
else
{
    echo 'unframeable';
}

Overriding curl options

<?php

require 'vendor/autoload.php';

use Exfriend\FrameValidator\Validator;

$v = Validator::make( 'https://example.com' )->withCurlOptions( [
    CURLOPT_TIMEOUT => 10,
    CURLOPT_CONNECTTIMEOUT => 5,
] );

echo $v->supportsIframes();

Contributing

You are welcome!, (*2)

The Versions

21/05 2018

dev-master

9999999-dev

Detect whether URL can be embedded in an iframe

  Sources   Download

MIT

The Development Requires

by Avatar exfriend

21/05 2018

0.3

0.3.0.0

Detect whether URL can be embedded in an iframe

  Sources   Download

MIT

The Development Requires

by Avatar exfriend

25/10 2017

0.2

0.2.0.0

Detect whether URL can be embedded in an iframe

  Sources   Download

MIT

The Development Requires

by Avatar exfriend

26/07 2017

0.1

0.1.0.0

Detect whether URL can be embedded in an iframe

  Sources   Download

MIT

The Development Requires

by Avatar exfriend