Skip to content

2.3.0

Compare
Choose a tag to compare
@oscarotero oscarotero released this 08 Jul 09:35
· 902 commits to master since this release
  • 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();
}