TMDB API wrapper for laravel

v1.0.2 2020-04-02 19:49 UTC

This package is auto-updated.

Last update: 2025-06-29 01:42:19 UTC


README

Build Status Total Downloads Latest Stable Version License

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