An open API service indexing awesome lists of open source software.

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.

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
```