Swisnl Json Api Client Versions Save

A PHP package for mapping remote {json:api} resources to Eloquent like models and collections.

2.3.2

1 month ago

Added

  • Added support for Laravel 11 #101.

2.3.1

7 months ago

Added

  • Added support for psr/http-message v2 #100 (thanks @KarinaRashchynskaya).

2.3.0

1 year ago

Added

  • Added support for Laravel 10 #99.

Removed

  • Dropped PHP <7.4 support.
  • Dropped Laravel <8 support #99.

2.2.0

1 year ago

Added

  • Added getData method on relationships to get the relationship data #97.

Fixed

  • Fix relationship data meta issue #97.

2.1.0

1 year ago

Changed

  • The Repository is split up into one trait per action #91. This allows you to build your own repository by extending the BaseRepository and including just the actions/traits you need. See the (updated) readme for usage instructions. The Repository now uses these new traits and should be fully backwards compatible.

Fixed

  • Fix ParamNameMismatch issue #96.

2.0.1

2 years ago

Added

  • Added support for Laravel 9.

Fixed

  • Temporarily suppress PHP 8.1 notices about inconsistencies with interfaces.

2.0.0

2 years ago

Please also check the changes in 2.0.0-beta and see UPGRADING for details on how to upgrade.

Changed

  • All classes now use strict typing #93.
  • All JSON-actions (json_encode and json_decode) will throw JsonExceptions on error #94.

Removed

  • Dropped PHP <7.3 support.

2.0.0-beta

2 years ago

Please see UPGRADING for details on how to upgrade.

Added

  • Added Item::mergeAppends, Item::mergeCasts, Item::mergeFillable and Item::mergeGuarded.

Changed

  • Renamed Item::addHidden to Item::makeHidden.
  • Merged Item::addVisible and Item::withHidden into Item::makeVisible.
  • Changed visibility of Item::getAttributeValue to public.
  • The item's toArray method will now cast any attributes that implement Illuminate\Contracts\Support\Arrayable to an array.
  • The item's newInstance method will now copy the type of the original item.

Removed

  • Dropped Laravel <6 and PHP <7.2 support.
  • Removed jenssegers/model dependency and added the classes into the package.
  • Removed unintended array access to internal properties on the item (e.g. $item['attributes']).
  • Extracted Laravel parts (config, service provider and facades) into swisnl/json-api-client-laravel.

1.3.3

3 years ago

Fixed

  • Parse meta in resource identifier objects #89 @BurningDog

1.3.2

3 years ago

Fixed

  • The service provider will not set the base uri if it's empty. This allows you to set it in a custom container binding without using the config file.