PHP code example of benleeth / omdb-php-sdk
1. Go to this page and download the library: Download benleeth/omdb-php-sdk 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/ */
benleeth / omdb-php-sdk example snippets
use OmdbPhpSdk\Api\IdApi;
$idApi = new IdApi();
$idData = $idApi->getDataById('tt0087332');
print_r($idData);
use OmdbPhpSdk\Api\TitleApi;
$titleApi = new TitleApi();
$titleData = $titleApi->getDataByTitle('Kids', ['y' => '1995', 'type' => 'movie']);
print_r($titleData);
use OmdbPhpSdk\Api\SearchApi;
$searchApi = new SearchApi();
$searchData = $searchApi->getDataBySearch('Breaking Bad');
print_r($searchData);
bash
composer