twobitint / tmdb
TMDB API wrapper for laravel
v1.0.2
2020-04-02 19:49 UTC
Requires
- guzzlehttp/guzzle: ^6.5
- illuminate/contracts: ^7.0
- illuminate/support: ^7.0
Requires (Dev)
- orchestra/testbench: ^5.0
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-06-29 01:42:19 UTC
README
TMDB API Laravel Wrapper
A laravel package for interracting with the TMDB API.
Install
composer require twobitint/tmdb
Configure
Your .env
file should include an TMDB_TOKEN
key with a v4 token generated via the TMDB developer website. Specific config values can be modified in config/tmdb.php
Usage
The API can be accessed via dependency injection:
use Twobitint\TMDB\API;
Route::get('/', function (API $api) {
return $api->discoverMovies();
});
The API is also available via a facade:
use TMDB;
Route::get('/', function() {
return TMDB::discoverMovies();
});
Available methods and documentation
coming later