PHP code example of jleagle / omdb-imdb-api-client
1. Go to this page and download the library: Download jleagle/omdb-imdb-api-client 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/ */
jleagle / omdb-imdb-api-client example snippets
Imdb::setApiKey('xxx');
$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);
$movies = Imdb::search('the matrix');
// If you need to be more specific:
$movies = Imdb::search('the matrix', Imdb::TYPE_MOVIE, 1999);