https://github.com/bhutanio/movietvdb
Movie and TV Database API, Scrapes data from theMovieDB, theTvDB, OMDB (omdbapi.com)
https://github.com/bhutanio/movietvdb
omdb omdb-api themoviedb themoviedb-api thetvdb tmdb tvdb
Last synced: 6 months ago
JSON representation
Movie and TV Database API, Scrapes data from theMovieDB, theTvDB, OMDB (omdbapi.com)
- Host: GitHub
- URL: https://github.com/bhutanio/movietvdb
- Owner: bhutanio
- Created: 2016-02-20T10:08:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T04:26:16.000Z (over 3 years ago)
- Last Synced: 2025-05-18T11:49:45.534Z (about 1 year ago)
- Topics: omdb, omdb-api, themoviedb, themoviedb-api, thetvdb, tmdb, tvdb
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 17
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# theMovieDB, theTVDB and OMDB API Wrapper
[](https://gemnasium.com/github.com/bhutanio/movietvdb)
# Requirements
- [**PHP**](https://php.net) 5.6.4+ (**7.0+** preferred)
- PHP Extensions: openssl, mbstring, phpredis
- [Redis](http://redis.io) Server
- [Composer](https://getcomposer.org)
## API Keys
- theMovieDB: https://www.themoviedb.org/documentation/api
- theTVDB: https://api.thetvdb.com/swagger
- OMDB: http://www.omdbapi.com/
## Usage
```php
$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');
```