Skip to content

Repository files navigation

PHP IMDb

A PHP 5.3 library for scraping IMDb, strongly inspired by imdb.

Build Status

Installation

Install vendors

wget http://getcomposer.org/composer.phar
php composer.phar install

Update vendors

php composer.phar update

Usage

Get Movie

<?php$i = newIMDb\Movie("0095016");
$i->getTitle();

Search movie

<?php$s = newIMDb\Search("Star Trek");
foreach ($s->getMovies() as$movie) {
echo$movie->getTitle().PHP_EOL;
}

Command line

Get movie

bin/imdb show 0095016

Search movie

bin/imdb search "Star Trek"

Tests

Run the tests (requires PHPUnit >= 3.5)

phpunit

License

MIT, see LICENSE

About

A PHP 5.3 library for scraping IMDb

Resources

Code of conduct

Contributing

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages