不丹.io/movietvdb

电影和电视数据库API,从themoviedb.org (tmdb)、thetvdb.com (tvdb) 和 omdbapi.com (omdb) 爬取数据

dev-master / 2.1.x-dev 2023-02-11 04:26 UTC

This package is auto-updated.

Last update: 2024-09-11 07:51:49 UTC


README

Dependency Status

要求

  • PHP 5.6.4+ (7.0+ 更受青睐)
  • PHP 扩展:openssl, mbstring, phpredis
  • Redis 服务器
  • Composer

API 密钥

用法

$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');