Demo: Get movie details

Type a movie id in the form below to test the code to get movie details:

$tmdb  = Factory::create()->getTmdb('your_api_key');

$item  = new Item($tmdb);
$infos = $item->getMovie(11, array('language' => 'en-EN'));

echo '<h3>Movie details</h3>';
echo '<ul>';
echo '<li><b>Title: </b>'.$infos->getTitle().'</li>';
echo '<li><b>Id: </b>'.$infos->getId().'</li>';
echo '</ul>';

See Movie reference page for availables methods.

Result