PHP Classes

How to Get Movie Details with an Example Using the Qwerty PHP TMDB API: Retrieve movie information with the TMDB API

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 30 All time: 11,122 This week: 524Up
Version License PHP version Categories
tmdb-qwerty 1.0The PHP License5PHP 5, Web services, Video
Description 

Author

This package can retrieve movie information with the TMDB API.

It can send HTTP requests to the "The Movie DataBase" (TMDB) API Web server to perform several types of requests.

Currently, it can retrieve details about:

- Movies

- People involved in the productions

- Keywords associated with the productions

- Production networks

- Reviews about the productions

- TV shows

Picture of Hicri
  Performance   Level  
Name: Hicri <contact>
Classes: 26 packages by
Country: Turkey Turkey
Age: 30
All time rank: 291048 in Turkey Turkey
Week rank: 197 Up4 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Example

<?php

require __DIR__ . '/../vendor/autoload.php';

use
Qwerty\Tmdb\Client;
use
Qwerty\Tmdb\Tmdb;


$option = [
       
'base_url' => "https://api.themoviedb.org/3/movie/550",
       
'api_key' => "b1931f4b871deeec6800ccde48a5f744",
       
'version' => '3'
   
];

$client = new Client($option);
$ext = new Tmdb($client);

//echo $ext->movie("550");
//echo $ext->people("13");
//echo $ext->keyword("550");
//echo $ext->network("550");
//echo $ext->review("58aa82f09251416f92006a3a");
//echo $ext->tv("111");
echo $ext->collection("10");



Details

Qwerty - TMDB service

An api service for tmdb.com

Installation

To install this package tou can use composer:

    composer require qwerty/tmdb-service

Usage


    $tmdb = new Tmdb();
    $movie = $tmdb->getAll();


  Files folder image Files (15)  
File Role Description
Files folder image.idea (3 files)
Files folder imageexample (1 file)
Files folder imagesrc (3 files)
Files folder imagetests (1 file)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (15)  /  .idea  
File Role Description
  Accessible without login Plain text file modules.xml Data Auxiliary data
  Accessible without login Plain text file php.xml Data Auxiliary data
  Accessible without login Plain text file vcs.xml Data Auxiliary data

  Files folder image Files (15)  /  example  
File Role Description
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files (15)  /  src  
File Role Description
  Plain text file Client.php Class Class source
  Plain text file ClientInterface.php Class Class source
  Plain text file Tmdb.php Class Class source

  Files folder image Files (15)  /  tests  
File Role Description
  Plain text file TmdbAPITest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:30
This week:0
All time:11,122
This week:524Up