zerosuxx/tmdb-api-client

The Movie Database PHP Api Client

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zerosuxx/tmdb-api-client

1.3.0 2021-10-11 19:09 UTC

This package is auto-updated.

Last update: 2025-10-12 03:58:34 UTC


README

CI

Install package

$ composer require zerosuxx/tmdb-api-client

Usage

use GuzzleHttp\Client;
use App\Client\TheMovieDatabaseApiClient;

require __DIR__ . '/vendor/autoload.php';

$httpClient = new Client();
$apiToken = 'abc...';
$tmdbClient = new TheMovieDatabaseApiClient($httpClient, $apiToken);

$pageNumber = 10;
$movies = $tmdbClient->fetchTopRatedMovies($pageNumber);
$movieDetails = $tmdbClient->fetchMovieDetails($movies[0]['id']);

Run tests

$ composer test