Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 606 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 606 Bytes

imdb-client Build Status

IMDb PHP Scrapper, psr-0

Usage

<?php
$s = IMDb\Client::iniWithConfig(include __DIR__ . '/config.sample.php');;

$results = $s->searchMovie('Matrix');
$m = current($results);
$movie = $s->titleWithId($m['id']);
var_dump($movie);
echo json_encode($movie);

$results = $s->searchSeries('new girl');
$m = current($results);
$movie = $s->titleWithId($m['id']);
var_dump($movie);
echo json_encode($movie);

See ./tests/ directory for more examples