Skip to content

Releases: PoLaKoSz/Mafab

Fix case sensivity issues in Mafab class

09 Dec 16:32
Compare
Choose a tag to compare

v.2.0.0

08 Dec 13:24
Compare
Choose a tag to compare

⚠️ Breaking changes ⚠️

  • PoLaKoSz\Mafab\Models\MafabMovie
- public function getYear() : string {
+ public function getYear() : int {
  • Minimum required PHP version: 7.1
  • Removed PoLaKoSz\Mafab\DataAccessLayer\FakeWebClient class
  • PoLaKoSz\Mafab\Search class now located under PoLaKoSz\Mafab\Endpoints\Search
    -PoLaKoSz\Mafab\Endpoints\Search now requires an PoLaKoSz\Mafab\DataAccessLayer\IWebClient in the constructor

Features

  • PoLaKoSz\Mafab\Models\MafabMovie->getYear() returns -1 if year not found
  • PoLaKoSz\Mafab\Endpoints\Search
- class Search extends Endpoint
+ class Search extends Endpoint implements SearchEndpointInterface
  • Added a main entry point (PoLaKoSz\Mafab\Mafab class)
use PoLaKoSz\Mafab\Mafab;
...
$mafab = new Mafab();
$search = $mafab->search(); // @return PoLaKoSz\Mafab\EndPoint\SearchEndpointInterface

$results = $search->quicklyFor('Avatar');

print_r($results);

MafabMovie now serializable

27 Aug 13:52
Compare
Choose a tag to compare

Feature

Fix

  • MafabMovie getID() return type changed to string from int

Initial release

26 Aug 17:05
Compare
Choose a tag to compare

Ability to search for Movies only