Releases: tboothman/imdbphp
v3.1.5
v3.1.4
v.3.1.3
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
v3.1.1
v3.1.0
v3.0.2
v3.0.1
v3.0.0
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 setConfig::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