Releases: PoLaKoSz/Port.hu
Releases · PoLaKoSz/Port.hu
v3.0.0
v3.0.0-alpha.2
🐛 Bugfix 🐛
The website architecture was updated so the PortMovie
model's
getYear()
andgetOriginalTitle()
methods now fixed.
⚠️ Breaking change ⚠️
- Changed 'Deserializer' class postfix to 'Parser'
- Removed static keyword from the parser's methods
🕐 Performance 🕐
- Improved
MoviePageParser
performance with loading 'DOMDocument' only once in theconvert
function
Fix: QuickSearch without year
Bugfix and other
getYear()
nowreturns -1
if no year found for the given movie- Adds a
hasYear()
method to theQuickSearchResult
model - Prettified code
⚠️ Breaking change ⚠️
- Adds a new
bool
parameter to theQuickSearchResult
constructor ($hasYear
)
Fix: MoviePage without year
Bugfix and other
getYear()
nowreturns -1
if no year found for the given movie (instead ofNotice: Undefined offset: 0 in ...
- Adds a
hasYear()
method to thePortMovie
model - Prettified code
⚠️ Breaking change ⚠️
- Adds a new
bool
parameter to thePortMovie
constructor ($hasYear
)
Fix: QuickSearch
Bugfix
- QuickSearch was broken due to json response change
⚠️ Breaking change ⚠️
QuickSearch
now returns an array ofQuickSearchResult
instead ofPortMovie
PortMovie
no longer has theCAT
const
v1.2.1: Fix : QuickSearchDeserializer not found
Bugfix
- Class
PoLaKoSz\PortHu\QuickSearchDeserializer
not found (inQuickSearch
class)
QuickSearch
Feature
QuickSearch is the same when You open https:/port.hu/ and click the search icon (fast but not really detailed results)
Usage
use PoLaKoSz\PortHu\QuickSearch;
...
$search = new QuickSearch();
// returns an Array of PortMovie object
$movies = $search->get( 'Viskó' );
var_dump( $movie );
Initial release
v1.0.0 Initial commit