Skip to content

Latest commit

 

History

History
executable file
·
28 lines (19 loc) · 694 Bytes

README.md

File metadata and controls

executable file
·
28 lines (19 loc) · 694 Bytes

omdb-imdb-api-client

A package to retrieve movies and TV information from IMDB using the API at omdbapi.com with typed responses

Now that OMDB requires an API key you can set it using:

Imdb::setApiKey('xxx');

Retrieve full movie details, if you know the name or ID of the movie:

$movie = Imdb::retrieve('the matrix');

// If you need to be more specific:
// This will also return Rotten Tomatoes ratings & a longer plot
$movie = Imdb::retrieve('the matrix', Imdb::TYPE_MOVIE, 1999, true, true);

Search for a movie:

$movies = Imdb::search('the matrix');

// If you need to be more specific:
$movies = Imdb::search('the matrix', Imdb::TYPE_MOVIE, 1999);