A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.
Thanks for the PR, however making this change could break other applications that are using the library right now.
This library silences the errors, but you can still get them or debug them using the getErrors() method.
You can get the errors and throw the exceptions if that is what you wish.
$embera = new \Embera\Embera();
$result = $embera->autoEmbed($text);
if ($embera->hasErrors()) {
throw new Exception($embera->getLastError());
}
// Or you can inspect all the errors at once by doing
print_r($embera->getErrors());
I understand what you might be trying to achieve but I don't think merging this PR is a good Idea, since the library gives you the tools to debug errors in responses. Adding to that, by doing the merge in this branch, it might break other apps (Since no one is expecting the library to throw exceptions all of the sudden).
Hi @Nihaux
Thanks for the PR, however making this change could break other applications that are using the library right now.
This library silences the errors, but you can still get them or debug them using the
getErrors()
method.You can get the errors and throw the exceptions if that is what you wish.
I understand what you might be trying to achieve but I don't think merging this PR is a good Idea, since the library gives you the tools to debug errors in responses. Adding to that, by doing the merge in this branch, it might break other apps (Since no one is expecting the library to throw exceptions all of the sudden).
However thanks for the PR!