redpanda / php-imdb
A PHP 5.3 library for scraping IMDb.
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 1
Forks: 7
Open Issues: 3
pkg:composer/redpanda/php-imdb
Requires
- php: >=5.3.2
- kriswallsmith/buzz: 0.7
- symfony/console: 2.1.*
- symfony/css-selector: 2.1.*
- symfony/dom-crawler: 2.1.*
This package is not auto-updated.
Last update: 2025-10-11 17:13:03 UTC
README
A PHP 5.3 library for scraping IMDb, strongly inspired by imdb.
Installation
Install vendors
wget http://getcomposer.org/composer.phar
php composer.phar install
Update vendors
php composer.phar update
Usage
Get Movie
<?php $i = new IMDb\Movie("0095016"); $i->getTitle();
Search movie
<?php $s = new IMDb\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