Demo: Search movie

Type a movie title in the form below to test the code to search a movie:

$tmdb      = Factory::create()->getTmdb('your_api_key');
$search    = new Search($tmdb);
$responses = $search->movie('star wars');

echo '<ul>';
foreach ($responses as $response)
{
    echo '<li><b>Title:</b> '.$response->getTitle();    
        echo '<ul>';
        echo '<li><b>Id:</b> '.$response->getId().'</li>';
        echo '<li><b>Overview:</b> '.$response->getOverview().'</li>';
        echo '<li><b>Original Title:</b> '.$response->getOriginalTitle().'</li>';
        echo '<li><b>Release Date:</b> '.$response->getReleaseDate().'</li>';
        echo '</ul>';
    echo '</li>';
}
echo '</ul>';

See Results\Movie reference page for availables methods.

Result