gdetassigny/netflix-roulette

A wrapper for the Netflix Roulette API

1.0.0 2017-07-31 21:45 UTC

This package is auto-updated.

Last update: 2024-04-09 04:11:57 UTC


README

Please Note!!

Netflix roulette API is now down, therefore this package won't work anymore!

Build Status

Coverage Status

This is an unofficial PHP wrapper for the Netflix Roulette API.

Installation

You can install this wrapper by using composer.

Simply type :

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).

Here is an example of how you could use this wrapper :

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.

To see what information you can retrieve for movies / shows, have a look at the interface.