Skip to content

Releases: php-embed/Embed

2.4.4

28 Jul 08:48
Compare
Choose a tag to compare

Fixed a bug on generate google maps code

2.4.3

27 Jul 19:03
Compare
Choose a tag to compare
  • Fixed wrong configuration key names #67
  • Added support for google drive links

2.4.2

23 Jul 20:39
Compare
Choose a tag to compare

Fixed Instagram with https

2.4.1

23 Jul 07:50
Compare
Choose a tag to compare

2.4.0

20 Jul 16:04
Compare
Choose a tag to compare
  • 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 and Embed\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 and soundcloudKey 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

08 Jul 09:35
Compare
Choose a tag to compare
  • 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

27 Jun 17:21
Compare
Choose a tag to compare

Fixed Facebook Adapter on handle .co domains

2.2.6

23 Jun 18:25
Compare
Choose a tag to compare
  • 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

2.2.5

22 Jun 12:20
Compare
Choose a tag to compare
  • Added wikipedia adapter #61
  • Fixed providerIcon detection in html

2.2.4

21 Jun 16:01
Compare
Choose a tag to compare
  • Fixed embed code for Files adapter
  • Do not use regex to remove html comments because it fails with some url (#59)
  • Fixed typo in namespace declaration #60
  • Added php7 to travis