Releases: oscarotero/Embed
Releases · oscarotero/Embed
1.8.2
1.8.1
1.8.0
- 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 andEmbed\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
- 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
- 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
- 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
Fixed a bug that return null in imageWith/imageHeight in some circunstances
1.5.7
Ignored the demos in the releases
1.5.6
Moved the demos to a subdirectory