danielvdbilt / omdb-php
PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores
Installs: 243
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/danielvdbilt/omdb-php
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2026-01-09 08:22:03 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);