https://github.com/mathishouis/tmdb-api
A PHP package to make The Movie Database API easier to use.
https://github.com/mathishouis/tmdb-api
api composer laravel movie movie-database movies movies-api php tmdb tv
Last synced: 3 months ago
JSON representation
A PHP package to make The Movie Database API easier to use.
- Host: GitHub
- URL: https://github.com/mathishouis/tmdb-api
- Owner: mathishouis
- Created: 2022-06-24T20:54:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T14:44:11.000Z (about 3 years ago)
- Last Synced: 2025-06-26T15:12:00.335Z (3 months ago)
- Topics: api, composer, laravel, movie, movie-database, movies, movies-api, php, tmdb, tv
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Movie Database API
A PHP package to make The Movie Database API easier to use.
## Table of Contents
* [Requirements](#requirements)
* [Installation](#installation)
* [Usage](#usage)
* [Wiki](#wiki)
* [Testing](#testing)## 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
");
$movie = $client->Movies()->getMovie(76341);```
If you don't know how to get an API key from The Movie Database just click [here](https://developers.themoviedb.org/3/getting-started/introduction) to see how to get one.
#
You can even provide parameters.
```php
");
$movie = $client->Movies()->getMovie(76341, ['language' => 'fr']);```
#For further explanations, just take a look a our [wiki](https://github.com/kozennnn/tmdb-api/wiki)!
## Wiki
* [Home](https://github.com/kozennnn/tmdb-api/wiki)
* [Documentation](https://github.com/kozennnn/tmdb-api/wiki/Documentation)## Testing
```
php tests/MovieTest.php
```