Skip to content

Releases: tboothman/imdbphp

v8.3.2

13 Jan 19:00

Choose a tag to compare

Updated

  • Update psr/simple-cache dependency to allow version 3 #339

v8.3.1

22 Dec 10:39

Choose a tag to compare

Updated

  • User agent header

Fixes

  • Fix TitleSearch
  • Fix TitleSearchAdvanced

v8.3.0

02 Mar 18:09

Choose a tag to compare

Added

Updated

  • Update dev dependencies
  • Format project according to coding style

Fixes

  • Fix bugs found with PHPStan

v8.2.0

25 Feb 10:33

Choose a tag to compare

No methods have been converted to GraphQL so some methods have limited number of entries.

Added

  • Add Podcast Episode support #326 by @Fossil01

Fixes

  • Fix Title::trivia() - limited to 5 entries
  • Fix Title::filmingDates()
  • Fix Title::keywords_all() - limited to 50 entries
  • Fix Title::locations() - limited to 5 entries
  • Fix Title::quotes() and Title::quotes_split()
  • Fix Title::goofs() - limited to 5 entries
  • Fix Title::crazy_credits()
  • Fix Title::metacriticRating()
  • Fix Title::creator()

v8.1.0

14 Mar 23:59

Choose a tag to compare

  • Add Psr/Log v2 to allowed versions in composer.json
    ! Fix Title::aspect_ratio no longer returning anything

v8.0.2

21 Feb 00:53

Choose a tag to compare

Fixes

  • Fixes Title::alsoknow() returning an 'original title' with a null name when your imdb display title is the original title #298 Thanks @mam4dali
  • Improved the documentation of Title::alsoknow(). It wasn't clear when original title was returned and the comment field wasn't documented #297

Deprecation

  • Deprecate PersonSearch::reset()

Dev notes

Increased PHPStan level to 4, which should help ensuring return types are correct

v8.0.1

14 Feb 18:14

Choose a tag to compare

  • Added the ability to fetch multiple pages of results, and change the amount you receive per page to TitleSearchAdvanced. Thanks @miaadp
    • New method setCount() to change the number of results. Currently 50 by default
    • New method setStart() which changes the offset for the results. For example you fetch one page, then call setStart(50) and you'll get the next 50 results.
  • Fix Title::alsoknow() when country is not set. countryCode and languageCode will now be null if no language or country is set

v8.0.0

12 Feb 22:35

Choose a tag to compare

IMDb made changes to a few of its pages, the biggest change is not showing all information on initial page load. Because of this we've changed to loading this data from IMDb's graphql api instead.
This should make no difference to users of the library except the graphql code does not localise data. Any of the methods using it (every method mentioned in this release) might not return country/language specific information and will not respect the Config::language setting. Please raise an issue if this causes a problem.

Breaking changes

  • Title::plot() returns plain text utf-8 strings rather than html. It no longer contains the author at the end (You can get the author from Title::plot_split())
  • Title::plot_split() also has plain text utf-8 strings rather than html in its plot field
  • Title::releaseInfo() return has changed. The country strings have changed slightly, the dates are numbers rather than stringy numbers and month has been removed.
    • Was ['country' => 'USA', 'day' => '9', 'month' => 'June', 'mon' => '06', 'year' => '1993' ]
    • Now [ 'country' => 'United States', 'day' => 9, 'mon' => 6, 'year' => 1993, 'attributes' => [ 'Washington, D.C.', 'premiere' ] ]
  • Title::alsoknow() no longer returns a year or lang field (they were previously always an empty string). It no longer returns a comment of '$language title' for each aka.

Fixes

  • Fixed these methods broken by site change: Title::releaseInfo(), Title::synopsis(), Title::alternateVersions(), Title::runtimes(), Title::distCompany(), Title::specialCompany(), Title::prodCompany(), Title::specialCompany(), Title::otherCompany(), Title::movie_recommendations(), Title::taglines(), Title::movieconnection(), Title::extReviews(), Title::officialSites(), Title::videosites()

Additions

  • Title::alsoknow() now returns a countryCode, language and languageCode for each AKA.
  • Title::runtimes() now returns a country and countryCode
  • Title::videosites() now returns a language, languageCode but not a type.
    • Now ['url' => 'x', 'site' => FILM.TV, 'desc' => trailer, 'language' => German, 'languageCode' => de]
    • Was ['url'=>'x', 'site' => 'FILM.TV', 'desc' => 'trailer', 'type' => '']

v7.4.2

07 Jan 18:59

Choose a tag to compare

Bug fixes:

  • Remove visibility from const to support < PHP 7.1

v7.4.1

07 Jan 13:41

Choose a tag to compare

This release adds support for PHP 8.2, at least it's not generating any errors when running tests.

Bug fixes:

  • Fix demo as Title::soundtrack where simplified in v7.3.1
  • Fix Person::photo_localurl in PHP 8.2
  • Fix Title::photo_localurl in PHP 8.2