Skip to content

A PHP package to make The Movie Database API easier to use.

Notifications You must be signed in to change notification settings

kozennnn/tmdb-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Movie Database API

A PHP package to make The Movie Database API easier to use.

Table of Contents

Requirements

  • PHP 7.0, 8.0 or 9.0

Installation

composer require kozennnn/tmdb-api

Usage

The following code return the movie with id 76341.

<?php

use Kozennnn\TmdbAPI\TmdbClient;

$client = new TmdbClient("<YOUR_API_KEY>");
$movie = $client->Movies()->getMovie(76341);

If you don't know how to get an API key from The Movie Database just click here to see how to get one.

You can even provide parameters.

<?php

use Kozennnn\TmdbAPI\TmdbClient;

$client = new TmdbClient("<YOUR_API_KEY>");
$movie = $client->Movies()->getMovie(76341, ['language' => 'fr']);

For further explanations, just take a look a our wiki!

Wiki

Testing

php tests/MovieTest.php

Releases

No releases published

Packages

No packages published

Languages