2017 © Pedro Peláez
 

library tmdb-library

PHP wrapper classes for TMDB (TheMovieDatabase) API v3.

image

breuls/tmdb-library

PHP wrapper classes for TMDB (TheMovieDatabase) API v3.

  • Monday, September 23, 2013
  • by Breuls
  • Repository
  • 1 Watchers
  • 0 Stars
  • 580 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

TMDB4PHP

PHP wrapper classes for TMDB (TheMovieDatabase) API v3., (*1)

Thanks to: Calibrate (www.calibrate.be), (*2)

Requirements:

PHP 5.3+ Curl TMDB Api-key, (*3)

Basic usage:

require_once('TMDB.php');, (*4)

$db = TMDB::getInstance(''); $db->adult = true; // return adult content $db->paged = false; // merges all paged results into a single result automatically, (*5)

$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)

Assets

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)

The Versions

23/09 2013

1.0.x-dev

1.0.9999999.9999999-dev

PHP wrapper classes for TMDB (TheMovieDatabase) API v3.

  Sources   Download

The Development Requires