Skip to content

Releases: oscarotero/Embed

1.8.2

08 Jan 23:34
Compare
Choose a tag to compare
  • New adapter for slides.com #36
  • New adapter for line.do #41
  • Fixed soundcloud adapter with mobile urls #43 #44

1.8.1

12 Dec 23:21
Compare
Choose a tag to compare

Fixed composer configuration #39

1.8.0

11 Dec 22:59
Compare
Choose a tag to compare
  • Changed to PSR-4 autoloader
  • PSR-1/2 code style fixes
  • Removed some deprecated adapters: Cadenaser, Marca, Parleys, Rtve, Yfrog
  • Changes in the Embed\Request class and Embed\RequestResolvers\RequestResolverInterface
  • A lot of fixes and new tests
  • Changed the way to configure the resolver. Now it's configured with the rest of the options under the "resolver" subarray:
//Old style:
Embed\Request::setResolverConfig(array(
    'userAgent' => 'My spider',
    'connectionTimeout' => 10
));

$info = Embed\Embed::create($url);

//New style
$info = Embed\Embed::create($url, array(
    'resolver' => array(
        "options" => array(
            CURLOPT_USERAGENT => 'My spider',
            CURLOPT_CONNECTTIMEOUT => 10
        )
    )
));

1.7.0

12 Aug 10:18
Compare
Choose a tag to compare
  • Changed the way to detect the bigger image when 'getBiggerImage' or 'getBiggerIcon' is true. Until now the php function arsort was used but it doesn't work fine with images with the same dimmensions. From now, it returns the first bigger image found (the first images are suppossed to be the more relevants).
  • The options for the Curl request resolver have been changed to camelCase for more consistency with the other options
  • Improvements in the demo page.

1.6.0

10 Aug 11:11
Compare
Choose a tag to compare
  • By default, the facebook provider is disabled, to reduce the number of requests and avoid weird values. You can enable it again setting the config option facebookProvider to true
  • If the url is to a binary file (image, pdf, etc) the Curl request resolver does not download the content, only the headers. This avoid download large files unnecesary.

1.5.9

29 Jul 12:00
Compare
Choose a tag to compare
  • Added an adapter for giphy.com (the default adapter returns a not so good embed code)
  • Added ignoreFacebookProvider option to not use the facebook scrapping (sometimes returns weird values)

1.5.8

22 Jul 17:40
Compare
Choose a tag to compare

Fixed a bug that return null in imageWith/imageHeight in some circunstances

1.5.7

18 Jul 19:06
Compare
Choose a tag to compare

Ignored the demos in the releases

1.5.6

16 Jul 19:44
Compare
Choose a tag to compare

Moved the demos to a subdirectory

1.5.5

09 Jul 15:19
Compare
Choose a tag to compare
  • Updated facebook embed code #32
  • Fixes in url redirections