TMDB

A complete wrapper to use The Movie DB API V3 in PHP

<?php

require 'vendor/autoload.php';

use VfacTmdb\Factory;
use VfacTmdb\Search;
use VfacTmdb\Item;

// Initialize Wrapper
$tmdb = Factory::create()->getTmdb('your_api_key');

// Search a movie
$search    = new Search($tmdb);
$responses = $search->movie('star wars');

// Get all results
foreach ($responses as $response)
{
    echo $response->getTitle();
}

// Get movie information
$item  = new Item($tmdb);
$infos = $item->getMovie(11, array('language' => 'fr-FR'));

echo $infos->getTitle();

TMDB is a PHP library build to use easily the The Movie DataBase API. It is compliant with every modern PHP Frameworks such as Symfony, Laravel, Slim, Silex, etc. it uses Guzzle to execute all HTTP calls and relies PSR-3 standards for logging.

Installation

Current version : Latest Stable Version

Via composer :

$ composer require vfalies/tmdb

Requirements and Compatibilities

One system dependency is required : PHP 7.1 or higher. Other dependencies are managed through Composer (Guzzle, Monolog).

It is tested with several PHP versions : PHP Tested

Quality Metrics

Scrutinizer

Scrutinizer Code Quality Scrutinizer improve code quality and find bugs before they hit production with continuous inspection platform.

Code Coverage

Code Coverage Code coverage by unit tests guarantees the quality of the code, its solidity and its perenniality.

Sensio Labs Insight

SensioLabsInsight SensioLabsInsight is a quality assurance tool that analyzes your source code to find problems that degrade the overall quality of your projects.

Open source

TMDB is licensed under the MIT License and published through GitHub