PHP library for retrieving film and tv information from IMDb
No methods have been converted to GraphQL so some methods have limited number of entries.
Podcast Episode
support #326 by @Fossil01Title::trivia()
- limited to 5 entriesTitle::filmingDates()
Title::keywords_all()
- limited to 50 entriesTitle::locations()
- limited to 5 entriesTitle::quotes()
and Title::quotes_split()
Title::goofs()
- limited to 5 entriesTitle::crazy_credits()
Title::metacriticRating()
Title::creator()
Title::alsoknow()
returning an 'original title' with a null name when your imdb display title is the original title #298 Thanks @mam4daliTitle::alsoknow()
. It wasn't clear when original title was returned and the comment field wasn't documented #297PersonSearch::reset()
Increased PHPStan level to 4, which should help ensuring return types are correct
setCount()
to change the number of results. Currently 50 by defaultsetStart()
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.Title::alsoknow()
when country is not set. countryCode and languageCode will now be null if no language or country is setIMDb 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.
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 fieldTitle::releaseInfo()
return has changed. The country strings have changed slightly, the dates are numbers rather than stringy numbers and month has been removed.
['country' => 'USA', 'day' => '9', 'month' => 'June', 'mon' => '06', 'year' => '1993' ]
[ '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.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()
Title::alsoknow()
now returns a countryCode, language and languageCode for each AKA.Title::runtimes()
now returns a country and countryCodeTitle::videosites()
now returns a language, languageCode but not a type.
['url' => 'x', 'site' => FILM.TV, 'desc' => trailer, 'language' => German, 'languageCode' => de]
['url'=>'x', 'site' => 'FILM.TV', 'desc' => 'trailer', 'type' => '']
Bug fixes:
This release adds support for PHP 8.2, at least it's not generating any errors when running tests.
Bug fixes:
Title::soundtrack
where simplified in v7.3.1Person::photo_localurl
in PHP 8.2Title::photo_localurl
in PHP 8.2This release makes it easier to follow the "coding standard" that never where written down. We are using PHP-FIG - PER Coding Style
that currently are identical to PSR-12. It's a living coding style that can adapt to newer PHP versions without issuing a new standard.
We have also incorporate EditorConfig so that we get the correct amount of tab/spaces depending on file type/path.
PHPStan have been raised to level 1 to automatically find more bugs in the code.
composer test
composer phpstan
composer style
Additions:
Changes:
Title::parentalGuide()
to also html entity decode single quotesBug fixes:
Title::cast
in PHP 8.1Person::photo
TitleTest::testEpisodes_returns_unknown_season_episodes
Title::aspect_ratio
TitleTest::testRuntimes_two_runtimes_one_annotation
Person::real_id
TitleTest::testAlsoknow
Person::filmograf
#286 @duck7000Calendar::upcomingReleases
Title::tagline
in PHP 5.6 #284 @paxterChanges:
Title::soundtrack()
to just return raw data rather than badly trying to parse itBug fixes:
Calendar::upcomingReleases()
PersonSearch::results()
Title::storyline()
Title::tagline()
Title::parentalGuide()
TitleSearch::search()
Title::populateEpisodeSeasonEpisode()
Title::keywords()
#278 @duck7000 and @tboothmanPerson::spouse()
#275 @duck7000Title::died()
Additions:
Person::real_id()
gives the imdb ID of a person after following any redirects from the ID requested. Thanks @duck7000Calendar
with method upcomingReleases($country)
that lets you see the upcoming releases for a country as seen on https://www.imdb.com/calendar?region=gb. Thanks @duck7000Bug fixes:
Title::cast()
names and role names, maybe more) #262 #253Title::title()
#264Title::comment()
. #258 #270Title::movie_recommendations()
. Thanks @duck7000 #268