netflix-roulette
Please Note!!
Netflix roulette API is now down, therefore this package won't work anymore!, (*1)
, (*2)
, (*3)
This is an unofficial PHP wrapper for the Netflix Roulette API., (*4)
Installation
You can install this wrapper by using composer., (*5)
Simply type :, (*6)
composer require gdetassigny/netflix-roulette
Usage
The API should allow you to retrieve movies and tv shows for given parameters.
(e.g. retrieve all netflix movies starring Brad Pitt)., (*7)
Here is an example of how you could use this wrapper :, (*8)
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"
You can see more example of parameters in the API documentation., (*9)
To see what information you can retrieve for movies / shows, have a look at the interface., (*10)