PHP code example of danielvdbilt / omdb-php
1. Go to this page and download the library: Download danielvdbilt/omdb-php 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/ */
danielvdbilt / omdb-php example snippets
$Omdb = new \Omdb();
$result = $Omdb->findByTitle('The Godfather', 1972);
$Omdb = new \Omdb();
$result = $Omdb->findByID('tt0068646');
$Omdb = new \Omdb();
$result = $Omdb->find('The Godfather');
$Omdb = new \Omdb();
$result = $Omdb->findPoster('tt0068646', 1000);