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   View files Example   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 30 This week: 1All time: 11,033 This week: 560Up
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: 23 packages by
Country: Turkey Turkey
Age: 30
All time rank: 307149 in Turkey Turkey
Week rank: 34 Up1 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 3x

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  
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  /  .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  /  example  
File Role Description
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  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  /  tests  
File Role Description
  Plain text file TmdbAPITest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:30
This week:1
All time:11,033
This week:560Up