1. Go to this page and download the library: Download aalfiann/imdb-engine 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/ */
aalfiann / imdb-engine example snippets
use \aalfiann\IMDB;
$imdb = new IMDB();
$imdb->query = 'tt3829266'; // ID IMDB Movie { to get video trailer. Default value is true.
echo var_dump($imdb->find()->getMovie());
use \aalfiann\IMDB;
$imdb = new IMDB();
$imdb->query = 'The Predator'; // Movie title {not ted
$imdb->userid = ''; // You can filter by input user id. Ex. Jackie Chan user id is >> nm0000329
$imdb->start = 1; // Start number for navigation in many results.
$imdb->itemsperpage = 50; // You can change this with 50, 100 and 250. Default is 50.
echo var_dump($imdb->search()->getList());
use \aalfiann\IMDB;
$imdb = new IMDB();
$imdb->query = 'Audrey Hepburn'; // Artist name {emsperpage = 50; // You can change this with 50, 100 and 250. Default is 50.
echo var_dump($imdb->searchArtist()->getArtistList());