danielvdbilt / omdb-php
There is no license information available for the latest version (1.0.0) of this package.
PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores
1.0.0
2017-11-14 08:23 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2025-06-13 05:49:14 UTC
README
PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores. Sign up as Patron at http://www.omdbapi.com/ for API calls and movie posters.
Download
Add the library with composer
composer require danielvdbilt/omdb-php
Usages
Finding movie by title, year is optional
$Omdb = new \Omdb(); $result = $Omdb->findByTitle('The Godfather', 1972);
Finding movie by IMDb ID
$Omdb = new \Omdb(); $result = $Omdb->findByID('tt0068646');
Find movie(s) by search key
$Omdb = new \Omdb(); $result = $Omdb->find('The Godfather');
Get poster (you need an API key for this), height is optional
$Omdb = new \Omdb(); $result = $Omdb->findPoster('tt0068646', 1000);