Skip to content

duck7000/TMDbAPIPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

126 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TMDbAPIPHP

PHP library for retrieving movie or tv show from TMDb API.
For this to work you need a tmdb API bearer token (not api key!) so you have to create a account to get it

All info is in the wiki pages
https://github.com/duck7000/TMDbAPIPHP/wiki

Quick Start

Search For Title, person, tv, keyword, company and collection

$Tmdb = new \Tmdb\Search();
$results = $Tmdb->textSearch("1408");

For convert imdbId to tmdbId:

$Tmdb = new \Tmdb\Search();
$results = $Tmdb->imdbToTmdb("tt0450385"); // tt and nm are supported

For Movie:

$title = new \Imdb\Movie("3021");
$results = $title->fetchMovieData();

For Person:

$person = new \Imdb\Person("3036");
$results = $person->fetchPersonData();

For Tv series:

$tv = new \Imdb\Tv("66788");
$results = $tv->fetchTvData();

Installation

Download the latest version or latest git version and extract it to your webserver. Use one of the above methods to get some results

Get the files with one of:

  • Git clone. Checkout the latest release tag
  • [Zip/Tar download]

Requirements

  • PHP >= works from 8.0 - 8.4
  • PHP cURL extension
  • PHP json extension

About

TMDb API wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages