PHP code example of kyleblanker / omdb-php
1. Go to this page and download the library: Download kyleblanker/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/ */
kyleblanker / omdb-php example snippets
$client = new \KyleBlanker\Omdb\Client('<your_api_key>');
$client = new \KyleBlanker\Omdb\Client('<your_api_key>');
$response = $client->year(1988)->search('The Land Before Time')->get();
var_dump($response->results());
$client = new \KyleBlanker\Omdb\Client('<your_api_key>');
$response = $client->getByImdbID('tt0095489');
var_dump($response->results());