2017 © Pedro Peláez
 

library omdb-php

PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores

image

danielvdbilt/omdb-php

PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores

  • Wednesday, November 15, 2017
  • by danielvdbilt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

Omdb-PHP

PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores. Sign up as Patron at http://www.omdbapi.com/ for API calls and movie posters., (*1)

Download

Add the library with composer, (*2)

composer require danielvdbilt/omdb-php, (*3)

Usages

Finding movie by title, year is optional, (*4)

$Omdb   = new \Omdb();
$result = $Omdb->findByTitle('The Godfather', 1972);

Finding movie by IMDb ID, (*5)

$Omdb   = new \Omdb();
$result = $Omdb->findByID('tt0068646');

Find movie(s) by search key, (*6)

$Omdb   = new \Omdb();
$result = $Omdb->find('The Godfather');

Get poster (you need an API key for this), height is optional, (*7)

$Omdb   = new \Omdb();
$result = $Omdb->findPoster('tt0068646', 1000);

The Versions

15/11 2017

dev-master

9999999-dev

PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores

  Sources   Download

The Requires

  • php ^5.3.3 || ^7.0

 

14/11 2017

1.0.0

1.0.0.0

PHP API for omdb movie database with: movie info, imdb scores and rotten tomatoes scores

  Sources   Download

The Requires

  • php ^5.3.3 || ^7.0