PHP Classes

PHP IMDB API: Retrieve movie information from the IMDB API site

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,275 All time: 3,013 This week: 39Up
Version License PHP version Categories
imdb-api 1.0.0GNU General Publi...3.0PHP 5, Web services, Video
Description 

Author

This class can retrieve movie information from the IMDB API site.

It can send HTTP requests to the IMDB API site to perform queries for movie information.

The class retrieves the responses and returns the parsed response information about the queried movies.

Picture of Tiago André
Name: Tiago André <contact>
Classes: 4 packages by
Country: Portugal Portugal
Age: ???
All time rank: 120414 in Portugal Portugal
Week rank: 262 Up7 in Portugal Portugal Up

Example

<?php
   
include('imdb.class.php');
   
$imdb=new imdb('hunger games');
    echo
"<pre>";
   
print_r($imdb->get());
    echo
"</pre>";
?>


Details

/* * imdb.class.php * * Copyright 2012 Tiago André <geral.t8bit@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * */ /*Usage: * $imdb=new imdb('hunger games'); * $imdb->get(); * Doing that you will recive an object with the movie information, * * Aditional options * * $imdb=new imdb(movie_name,year,id_imdb); * * you can search by id, year or name. * * or if you want you can set that parameters like this * * $imbd->set('title','hunger_games'); * * $imbd->set('year','2012'); * * $imbd->set('id','12453635'); * * * Get Values return a string with the value * * $imbd->get('Title'); * * $imbd->get('Year'); * * $imbd->get('Rated'); * * $imbd->get('Released'); * * $imbd->get('Runtime'); * * $imbd->get('Genre'); * * $imbd->get('Director'); * * $imbd->get('Writer'); * * $imbd->get('Actores'); * * $imbd->get('Plot'); * * $imbd->get('Poster'); * * $imbd->get('imdbRating'); * * $imbd->get('imdbVotes'); * * $imbd->get('imdbID'); */

  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.php Example Demo File
Plain text file imdb.class.php Class main file
Accessible without login Plain text file README Doc. readme file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,275
This week:0
All time:3,013
This week:39Up