Skip to content

2.4.0

Compare
Choose a tag to compare
@oscarotero oscarotero released this 20 Jul 16:04
· 873 commits to master since this release
  • 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'
            ]
        ]
    ]);