Demo: Search people

Type a people name in the form below to test the code to search a people:

$tmdb      = Factory::create()->getTmdb('your_api_key');
$search    = new Search($tmdb);
$responses = $search->people('Angelina Jolie');

foreach ($responses as $response)
{
    echo '<li><b>Name:</b> '.$response->getName();
        echo '<ul>';
        echo '<li><b>Id:</b> '.$response->getId().'</li>';
        echo '<li><b>Adult:</b> '.$response->getAdult().'</li>';
        echo '<li><b>Popularity:</b> '.$response->getPopularity().'</li>';
        echo '<li><b>Profile path:</b> '.$response->getProfilePath().'</li>';
        echo '</ul>';
    echo '</li>';
}

See Results\People reference page for availables methods.

Result