library php-imdb
A PHP 5.3 library for scraping IMDb.
redpanda/php-imdb
A PHP 5.3 library for scraping IMDb.
- Thursday, October 25, 2012
- by redpanda
- Repository
- 2 Watchers
- 13 Stars
- 38 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 7 Forks
- 4 Open issues
- 1 Versions
- 0 % Grown
PHP IMDb
A PHP 5.3 library for scraping IMDb, strongly inspired by imdb., (*1)
, (*2)
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, (*3)
dev-master
9999999-dev
A PHP 5.3 library for scraping IMDb.
Sources
Download
The Requires
imdb