1.0.x-dev
1.0.9999999.9999999-devPHP wrapper classes for TMDB (TheMovieDatabase) API v3.
The Development Requires
PHP wrapper classes for TMDB (TheMovieDatabase) API v3.
PHP wrapper classes for TMDB (TheMovieDatabase) API v3., (*1)
Thanks to: Calibrate (www.calibrate.be), (*2)
PHP 5.3+ Curl TMDB Api-key, (*3)
require_once('TMDB.php');, (*4)
$db = TMDB::getInstance('
$title = 'The Matrix'; $year = '1999';, (*6)
$results = $db->search('movie', array('query'=>$title, 'year'=>$year));, (*7)
$movie = reset($results); $images = $movie->posters('300');, (*8)
TMDB.php contains the API wrapper for querying TMDB. Results are transformed into the helper objects automatically. For example searching for 'movie' will result in a array of Movie objects., (*9)
More info will come soon., (*10)
I created several objects for the 'assets' TMDB uses. These include: * Movie * Person * Company * Collection * Genre, (*11)
You can create a new asset and have it filled in with information automatically by passing in the id in the constructor., (*12)
For example:, (*13)
$movie = new Movie(10); Will load a movie object with the info for a movie with tmdb id 10;, (*14)
PHP wrapper classes for TMDB (TheMovieDatabase) API v3.