Releases: php-embed/Embed
2.4.4
Fixed a bug on generate google maps code
2.4.3
2.4.2
Fixed Instagram with https
2.4.1
Improved Github adapter. Added support for geojson and 3d files. More info:
2.4.0
-
Internal changes to make the library more comprehensible and easy to extend
-
The
Embed\RequestResolvers\RequestResolverInterface
has changed a little bit. -
Changed the
Embed\Request
andEmbed\Url
classes to be inmutable. -
Added oembed support for:
- Bambuser
- Flickr
- Kickstarter
- Polldaddy
- Shoudio
- Spotify
- Ustream
-
Improved oembed automatic detection from the html code (some sites use
<meta>
instead of<link>
). -
Improvements for devianart
-
New adapter for Howcast
-
Improved publishedTime value detection in opengraph
-
Created providers to work with some specific apis (archive.org, facebook, gist, soundcloud, wikipedia). This affects to configuration.
facebookKey
andsoundcloudKey
options have been moved://before: $info = Embed::create($url, [ 'adapter' => [ 'config' => [ 'facebookKey' => 'my-access-token' 'souncloudKey' => 'YOUR_CLIENT_ID' ] ] ]); //Now: $info = Embed::create($url, [ 'providers' => [ 'facebook' => [ 'key' => 'my-access-token' ], 'soundcloud' => [ 'key' => 'YOUR_CLIENT_ID' ] ] ]);
2.3.0
- Fixed
getBiggerImage
option #66 - Use of exceptions to catch errors instead returns
false
:
use Embed\Embed;
//before
$info = Embed::create($url);
if ($info) {
echo $info->title;
}
//now
try {
$info = Embed::create($url);
} catch (Embed\Exceptions\InvalidUrlException $exception) {
echo 'This url is not valid: ' . $exception->getMessage();
}
2.2.7
Fixed Facebook Adapter on handle .co
domains
2.2.6
- Removed TED oembed provider, because the endpoint is defined in the head.
- Fixed oembed detection in head
Embed\Url
now decodes the query values. This fixes some problems