BProgIMDBLib

Technical

BProgIMDBLib is a php library for searching and extracting movie information from IMDB.com.
You need PHP version 5 or greater with CURL and DOM support enabled.

Demo.

The usual jada-nada

This is free software, but please donate some dollars so I can buy beer and improve BProgIMDBLib.
All use is on own responsibility. IMDB migth not like you using this ;p

Sample code

<?php
$imdb 
= new BProgIMDB();
$res $imdb->search('The matrix revolution');
if (
$res->getNumberOfResults() > 0) {
    
$movie $res->getBestMatch();
    
$movie->fetch();
    
print_r($movie);
} else {
    echo 
'No matches';
}
?>

Output

IMDBMovie Object
(
    [loaded] => 1
    [imdb_id] => 0242653
    [lev] => 1
    [t_url:private] => http://us.imdb.com/title/tt%s/
    [dom:private] => DOMDocument Object
        (
        )

    [rating] => 6.4
    [title] => The Matrix Revolutions 
    [poster] => http://ia.imdb.com/media/imdb/01/I/75/85/28m.jpg
    [genre] => Array
        (
            [0] => Action
            [1] => Sci-Fi
            [2] => Thriller
        )

    [tagline] => Everything that has a beginning has an end. more
    [plotOutline] => The human city of Zion defends itself against the massive invasion of the machines as Neo fights to end the war at another front while also opposing the rogue Agent Smith.
    [awards] => 1 win & 17 nominations
)
	

Download

Download