2017 © Pedro PelĂĄez
 

library php-imdb-grabber

This class enables you to retrieve data from IMDb.com with PHP.

image

jmartin/php-imdb-grabber

This class enables you to retrieve data from IMDb.com with PHP.

  • Thursday, January 25, 2018
  • by muertet
  • Repository
  • 6 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 97 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PHP IMDb.com Grabber

This PHP library enables you to scrap data from IMDB.com., (*1)

The script is a proof of concept. It’s mostly working, but you shouldn’t use it. IMDb doesn’t allow this method of data fetching. I personally do not use or promote this script, you’re fully responsive if you’re using it., (*2)

The technique used is called “web scraping”. This means, if IMDb changes anything within their HTML source, the script is most likely going to fail. I won’t update this regularly, so don’t count on it to be working all the time., (*3)

License

The MIT License (MIT), (*4)

Usage

<?php
include_once 'imdb.class.php';
$oIMDB = new IMDB('Movie Title or IMDB URL');
if ($oIMDB->isReady) {
        [
 Do something, see below 
]
    }
    else {
        [
 Movie was not found 
]
    }
}
?>

Get all available data, (*5)

getAll(), (*6)

Also Known As, (*7)

getAka(), (*8)

Aspect Ratio, (*9)

getAspectRatio(), (*10)

Awards, (*11)

getAwards(), (*12)

Cast, (*13)

getCast($iLimit = 0, $bMore = true) - $iLimit defines the maximum amount of people returned, $bMore if "
" should be added to the string if needed, (*14)

Cast (with links), (*15)

getCastAsUrl($iLimit = 0, $bMore = true, $sTarget = '') - $iLimit defines the maximum amount of people returned, $bMore if "
" should be added to the string if needed, $sTarget defines a target, (*16)

Cast and Character, (*17)

getCastAndCharacter($iLimit = 0, $bMore = true) - $iLimit defines the maximum amount of people returned, $bMore if "
" should be added to the string if needed, (*18)

Cast and Character (with links), (*19)

getCastAndCharacterAsUrl($iLimit = 0, $bMore = true, $sTarget = '') - $iLimit defines the maximum amount of people returned, $bMore if "
" should be added to the string if needed, $sTarget defines a target, (*20)

Certification, (*21)

getCertification(), (*22)

Color, (*23)

getColor(), (*24)

Company, (*25)

getCompany(), (*26)

Company (with links), (*27)

getCompanyAsUrl($sTarget = '') - $sTarget defines a target, (*28)

Country, (*29)

getCountry(), (*30)

Country (with links), (*31)

getCountryAsUrl($sTarget = '') - $sTarget defines a target, (*32)

Creator, (*33)

getCreator(), (*34)

Creator (with links), (*35)

getCreatorAsUrl($sTarget = '') - $sTarget defines a target, (*36)

Director, (*37)

getDirector(), (*38)

Director (with links), (*39)

getDirectorAsUrl($sTarget = '') - $sTarget defines a target, (*40)

Genre, (*41)

getGenre(), (*42)

Genre (with links), (*43)

getGenreAsUrl($sTarget = '') - $sTarget defines a target, (*44)

Language, (*45)

getLanguage(), (*46)

Language (with links), (*47)

getLanguageAsUrl($sTarget = '') - $sTarget defines a target, (*48)

Location, (*49)

getLocation(), (*50)

Location (with links), (*51)

getLocationAsUrl($sTarget = '') - $sTarget defines a target, (*52)

MOVIEmeter, (*53)

getMovieMeter(), (*54)

MPAA, (*55)

getMpaa(), (*56)

Plot Keywords, (*57)

getPlotKeywords(), (*58)

Plot, (*59)

getPlot($iLimit = 0) - $iLimit defines the maximum characters returned, (*60)

Poster, (*61)

getPoster($sSize = 'small', $bDownload = true) - $sSize defines small or big poster size, $bDownload if the poster should be downloaded or not, (*62)

Rating, (*63)

getRating(), (*64)

Release Date, (*65)

getReleaseDate(), (*66)

Runtime, (*67)

getRuntime(), (*68)

Seasons, (*69)

getSeasons(), (*70)

Seasons (with links), (*71)

getSeasonsAsUrl($sTarget = '') - $sTarget defines a target, (*72)

Sound Mix, (*73)

getSoundMix(), (*74)

Tagline, (*75)

getTagline(), (*76)

Title, (*77)

getTitle($bForceLocal = false) - $bForceLocal tries to return the original name of the movie, (*78)

Trailer, (*79)

getTrailerAsUrl($bEmbed = false) - $bEmbed defines if you want to link to player directly or not., (*80)

Url, (*81)

getUrl(), (*82)

User Review, (*83)

getUserReview(), (*84)

Votes, (*85)

getVotes(), (*86)

Writer, (*87)

getWriter(), (*88)

Writer (with links), (*89)

getWriterAsUrl($sTarget = '') - $sTarget defines a target, (*90)

Year, (*91)

getYear(), (*92)

Bugs?

If you run into any malfunctions, feel free to submit an issue. Make sure to enable debugging: const IMDB_DEBUG = true; in imdb.class.php., (*93)

The Versions

25/01 2018

dev-custom

dev-custom

This class enables you to retrieve data from IMDb.com with PHP.

  Sources   Download

CC-BY-NC-SA-3.0 CC BY-NC-SA 3.0

The Requires

  • ext-curl *

 

The Development Requires

09/02 2015

dev-master

9999999-dev https://github.com/FabianBeiner/PHP-IMDB-Grabber

This PHP library enables you to scrap data from IMDB.com.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.5.0

 

api client imdb

09/02 2015

v6.0.1

6.0.1.0 https://github.com/jmartin82/PHP-IMDB-Grabber

This PHP library enables you to scrap data from IMDB.com.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.5.0

 

api client imdb

02/01 2015

v6.0.0

6.0.0.0 https://github.com/FabianBeiner/PHP-IMDB-Grabber

This PHP library enables you to scrap data from IMDB.com.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.5.0

 

api client imdb

09/12 2014

5.5.21

5.5.21.0

This class enables you to retrieve data from IMDb.com with PHP.

  Sources   Download

CC BY-NC-SA 3.0

The Requires

  • ext-curl *

 

24/08 2014

5.5.20

5.5.20.0

This class enables you to retrieve data from IMDb.com with PHP.

  Sources   Download

CC BY-NC-SA 3.0

The Requires

  • ext-curl *

 

13/08 2014

dev-light

dev-light

This class enables you to retrieve data from IMDb.com with PHP.

  Sources   Download

CC BY-NC-SA 3.0

The Requires

  • ext-curl *