Skip to content

Releases: tboothman/imdbphp

v3.1.5

27 Jan 19:05
Compare
Choose a tag to compare

Re-implement the new imdb site layout code. Hopefully this is the last time.

v3.1.4

12 Jan 23:07
Compare
Choose a tag to compare

I've removed usage of the new layout, which seems to have been removed. This is effectively the same as v3.1.1.
You will probably want to delete any cached pages if you've used 3.1.3

v.3.1.3

13 Dec 17:32
Compare
Choose a tag to compare

A few fixes due to the imdb layout change. I've forced the library to use a session of mine which uses the new layout as it seems to be random whether you get it or not. Please let me know if this doesn't work for you.
If your site relies on the page caching you must delete all your page caches for the title page as they will no longer work with this version for the methods mentioned below.

  • Fix Title::photo(), Title::rating(), Title::metacriticRating(), Title::plotoutline()
  • Deprecate Title::metacriticNumReviews() as it's no longer on the page. The method still exists but will always return null

v3.1.2

12 Dec 00:31
Compare
Choose a tag to compare

Fix Title::orig_title() which broke due an imdb site change

v3.1.1

28 Nov 21:49
Compare
Choose a tag to compare

Fix Title::alternateVersions() returning some junk html if there were no alternate versions

v3.1.0

21 Nov 20:35
Compare
Choose a tag to compare
  • Add Title::alternateVersions() #37
  • Fix advanced search when results contain an episode with no year
  • Fix Title::gross() when no country is year is specified by imdb. #39

v3.0.2

04 Nov 18:58
Compare
Choose a tag to compare
  • Fix Title::top250() (broken by imdb change) #35
  • Fix Title::quotes() (broken by imdb change) #38
  • Fix Title::movie_recommendations() when a title has a special version number in its name. #36

v3.0.1

17 Jun 18:29
Compare
Choose a tag to compare
  • Fix Title::movie_recommendations() (DOMDocument was not namespace scoped properly)
  • Fix Charts::getChartsBoxOffice() if there are less than 10 films
  • Updated makefile to deal with the new file structure

v3.0.0

07 Jun 22:37
Compare
Choose a tag to compare

This is a fairly big change, but should be a painless migration. Please read all of this as most of the changes are not backwards compatible.

Namespaces

This version migrates IMDbPHP to using namespaces to help it fit in with the now very modular nature of PHP. The library also allows autoloading by now following the PSR-0 spec. We recommend you use composer to include imdbphp/imdbphp but you can use your own autoloader or include bootstrap.php

As you can imagine none of your code will work any more as all the classes have changed names. Here are the class name changes:

Old class name New class name
imdb \Imdb\Title
imdb_budget \Imdb\Title (budget has been merged with title)
imdbsearch \Imdb\TitleSearch
imdb_person_search \Imdb\PersonSearch
imdbpsearch \Imdb\PersonSearch
imdb_person \Imdb\Person
imdb_topcharts \Imdb\Charts
imdb_movielist \Imdb\TitleSearchAdvanced
mdb_config \Imdb\Config
movieposterdb \MoviePosterDb\Movie

Other backwards incompatible changes

  • Moved the demo/website to demo folder. Keeps it separate from the code and more obvious what it is.
  • Changed return of Charts::getChartsBoxOffice. It used to return an array of numerically indexed arrays. It now returns an an array of arrays with the keys [id, weekend, gross]
  • Changed interface for advanced title search #30
  • HTTP errors will now throw an exception of type Imdb\Exception\Http. This gives you a way to distinguish between a film having no information and the library failing to request the page from imdb. If you do not want this behaviour you can set Config::throwHttpExceptions to be false.

Removals

  • Removed old non functioning classes
    • imdbXML
    • imdb_nowplaying
  • Removed config value: imdb_utf8recode

Feedback

I'd love to hear how you include IMDbPHP and what you use it for. Apart from a few pull requests I don't get much feedback from users of this library. Please could you give me a few words about how you like/hate this change or anything else here #33

v2.6.1

19 May 10:23
Compare
Choose a tag to compare
  • Fix year being missing when searching for films like "Home (II) (2015)" #24
  • Add a cache folder in the default location to stop exceptions with default config #29