PHP code example of anime-db / smotret-anime-browser-bundle
1. Go to this page and download the library: Download anime-db/smotret-anime-browser-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
anime-db / smotret-anime-browser-bundle example snippets
// app/appKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new AnimeDb\Bundle\SmotretAnimeBrowserBundle\AnimeDbSmotretAnimeBrowserBundle(),
);
}
use AnimeDb\Bundle\SmotretAnimeBrowserBundle\Exception\NotFoundException;
try {
$content = $browser->get('series/1');
} catch (NotFoundException $e) {
// series not found
} catch (\Exception $e) {
// other exceptions
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.