nihilarr / the-movie-db-api
A (very) simple library to access The Movie DB data
v0.0.3
2019-09-08 00:54 UTC
Requires
- php: >=5.3.24
- php-curl-class/php-curl-class: ^8.0
This package is auto-updated.
Last update: 2025-04-11 01:38:03 UTC
README
A (very) simple library to access The Movie DB data
Requirements
- PHP >= 5.3.29
- php-curl-class >= 8.0
Install
Composer
composer require nihilarr/the-movie-db-api
Usage
require __DIR__ . '/vendor/autoload.php';
use Nihilarr\TheMovieDbApi;
$tmdb = new TheMovieDbApi('api_key');
$movie = $tmdb->movie(13310);
var_dump($movie);
$movie = $tmdb->movie_by_title('let the right one in', '2008');
var_dump($movie);
$movie = $tmdb->search_movie('let the right one in');
var_dump($movie);
Note
Contributing
License
MIT © Drew Smith