bhutanio / movietvdb by abixalmon

Movie and TV Database API, Scrapes data from themoviedb.org (tmdb), thetvdb.com (tvdb) and omdbapi.com (omdb)
741
17
6
Package Data
Maintainer Username: abixalmon
Maintainer Contact: abixalmon@gmail.com (Abi)
Package Create Date: 2016-02-20
Package Last Update: 2023-02-11
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-05-19 15:11:15
Package Statistics
Total Downloads: 741
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 17
Total Watchers: 6
Total Forks: 11
Total Open Issues: 0

theMovieDB, theTVDB and OMDB API Wrapper

Dependency Status

Requirements

  • PHP 5.6.4+ (7.0+ preferred)
  • PHP Extensions: openssl, mbstring, phpredis
  • Redis Server
  • Composer

API Keys

  • theMovieDB: https://www.themoviedb.org/documentation/api
  • theTVDB: https://api.thetvdb.com/swagger
  • OMDB: http://www.omdbapi.com/

Usage

$client = new \Bhutanio\Movietvdb\MovieScrapper('TMDB_API_KEY', 'TVDB_API_KEY', 'OMDB_API_KEY');

// Get Movie Information by IMDB ID
$movie = $client->scrape('movie', 'tt0120737');

// Get Movie Information by TheMovieDB ID
$movie = $client->scrape('movie', null, '120');

// Get TV Information by IMDB ID
$tv = $client->scrape('tv', 'tt0944947');

// Get Person information by TheMovieDB's Person ID
$person = $client->person('1327');