PHP code example of gdetassigny / netflix-roulette

1. Go to this page and download the library: Download gdetassigny/netflix-roulette 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/ */

    

gdetassigny / netflix-roulette example snippets



use GabrielDeTassigny\NetflixRoulette\Client;

$client = Client::getInstance();

$show = $client->findOne(['title' => 'Breaking Bad']);

var_dump($show->getSummary());
// "Emmy winner Bryan Cranston stars as Walter White, a high school science teacher who learns..."

$showList = $client->findMany(['actor' => 'Edward Norton']);

foreach ($showList as $show) {
    var_dump($show->getTitle());
}
// "The Italian Job"
// "The Score"
// "Strange Days on Planet Earth"
// "Primal Fear"
// "Rounders"
// "Frida"