Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 251 | All time: 7,915 This week: 524 |
Version | License | PHP version | Categories | |||
imdb-search 1.0 | The PHP License | 5.0 | PHP 5, Searching, Web services, Video |
Description | Author | |
This class can search movies and retrieve information from IMDB. |
<?php
|
find on IMDB.COM some titles like an input title
INPUT :
1 - a title ($_GET['t']),
2 - a country ($_GET['c']) : in order to filter all the titles of the 'movies' ('all' for no filter),
3 - a MoviesTypes ($_GET['g'] & see langages.php : $Types) : to filter only on some 'MoviesTypes'
OUTPUT : '0' if no title match the entry on IMDb.com, else an array:
array(
imdb_id : something like tt0456201 <- Id IMDB of the movie
title : principal title (depend on country),
year : IMDB year of the movie,
genres : (string) IMDB genre(s), [ATTENTION : in french but could be changed]
directors : (string) IMDB director(s),
poster : (string / URL) the biggest IMAGE if exists,
AKAs : (string) IMDB also_known_as (depend too on INPUT country),
video : (string / URL) IMDB trailer if exists,
type : IMDB MoviesTypes, [ATTENTION : in french but could be changed]
pere : IMDB_id for the serie if type=episode,
)
adapted from https://github.com/abhinayrathore/PHP-IMDb-Scraper
TO DO : Try to deceive IMDB.com to persuade him whom we are in France / Italy / else !
ATTENTION : strings - in the output - are filtered on "commas" because trouble with Javascript JSON.parse see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
Files (6) |
File | Role | Description |
---|---|---|
imdb.class.php | Class | IMDB parser |
imdbsearch.php | Example | main search file |
langages.php | Conf. | for internationalisation |
LICENSE | Lic. | License |
README.md | Data | Auxiliary data |
test.html | Output | test file |
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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.