PackageTrack
Sign in Get early access

laravel-json-api/encoder-neomerx

Encode JSON:API resources using the neomerx/json-api package.

v4.3.0 1.6M downloads/mo #2967 most downloaded on Packagist laravel-json-api/encoder-neomerx

What this package is like to depend on

Last release 4 months ago

28 Mar 2026

Ships fairly regularly

a new release about every 4 months

Nearly every release is documented

notes for 12 of 12 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

17 releases · first in 2021

1 release in the last 12 months

see the full history below

Release timeline

17 releases · Jan 2021 to Mar 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 17
  1. v4.3.0 28 Mar 2026
    Release notes

    Added

    • Support for Laravel 13.

    Changed

    • Dropped support for laravel-json-api/core v4.
    Open source →
  2. v4.2.0 24 Feb 2025
    Release notes

    Added

    • Package now supports Laravel 11 and 12.
    Open source →
  3. v4.1.0 30 Nov 2024
    Release notes

    Added

    • Allow laravel-json-api/core v4 or v5.

    Fixed

    • Remove deprecation notices in PHP 8.4.
    Open source →
  4. v4.0.0 14 Mar 2024
    Release notes

    Changed

    • Package is now licensed under the MIT License.
    • BREAKING Package now requires Laravel 11.
    • Minimum PHP version is now 8.2.
    Open source →
  5. v3.1.1 20 Nov 2023
    Release notes

    Fix bug in document json-api property.

    Open source →
    Release notes

    Fixed

    • #5 Fix error with default value for $jsonApi property on the Document class.
    Open source →
  6. v3.1.0 08 Nov 2023
    Release notes

    Remove re-throwing of exceptions.

    Open source →
    Release notes

    Changed

    • Encoding implementation no longer catches and re-throws exceptions when encoding compound document. Although the implementation here was correct, we're getting far too many questions from developers who do not refer to the previous exception even though the exception message specified that there was a previous exception.
    Open source →
  7. v3.0.1 18 Feb 2023
    Release notes

    Improve exception messages.

    Open source →
    Release notes

    Changed

    • Update exceptions thrown when the encoding process fails to notify developer to check previous exception for the cause of the failure.
    Open source →
  8. v3.0.0 14 Feb 2023
    Release notes

    Changed

    • Upgraded to Laravel 10 and set minimum PHP version to 8.1.
    Open source →
  9. v2.0.1 25 Jun 2022
    Release notes

    Upgrade neomerx package for meta bugfix.

    Open source →
    Release notes

    Fixed

    • Upgraded the laravel-json-api/neomerx-json-api dependency to ^5.0.1. This fixes a bug related to the top-level meta member. Previously the encoder added empty meta values to the top-level member, which is incorrect.
    Open source →
  10. v2.0.0 09 Feb 2022
    Release notes

    Added

    • Package now supports Laravel 9.
    • Package now supports PHP 8.1.

    Changed

    • Upgraded the laravel-json-api/neomerx-json-api dependency to 5.0.
    • Upgraded the laravel-json-api/core dependency to 2.0.
    • Added return types to internal methods to remove deprecation messages in PHP 8.1
    Open source →
  11. v1.1.0 03 Jan 2022
    Release notes

    Fixed

    • Fixed setting the top-level jsonapi value on the Document class, which was not setting the cast value.

    Removed

    • The RelationshipDocument no longer merges relationship links with the top-level document links. This is because we now expect the top-level links provided to the encoder to already have the relationship links merged. The core package takes care of this in the relationship response classes, while also providing the capability for the developer to turn off link merging if desired (which is a better implementation). This change is considered non-breaking because the core package dependency has been upgraded and there were existing bugs in the links merging implementation within the RelationshipDocument class. I.e. it would fail if either of the self or related links were missing, or if the relationship was hidden - so removing this merging fixes bugs in the implementation.
    Open source →
  12. v1.0.0 31 Jul 2021
    Release notes

    Initial stable release, with no changes since 1.0.0-beta.1.

    Open source →
  13. v1.0.0-beta.1 30 Mar 2021 pre-release
    Release notes

    Changed

    • Updated the encoder to implement changes made to the encoder interface. This removes the withIdentifiers() method and replaces it with the withToOne() and withToMany() methods.

    Fixed

    • When encoding relationships, do not yield a relationship value that is empty (no data, links or meta).
    Open source →
  14. v1.0.0-alpha.4 27 Feb 2021 pre-release
    Release notes

    Changed

    • This package now relies on laravel-json-api/neomerx-json-api, a fork of neomerx/json-api. This was required because of a bug affecting empty to-many include paths. Although a PR was sent to the Neomerx repository, there has been no activity in that repository for almost a year. The fork will be maintained for use in Laravel JSON:API, but we will switch back to using the Neomerx package if it is maintained in the future.

    Fixed

    • Conditional field values are now correctly handled when iterating over a resource's relationships.
    Open source →
  15. v1.0.0-alpha.3 09 Feb 2021 pre-release
    Release notes

    Added

    • Encoder now supports conditional fields being used in the JSON:API resource relationships.

    Fixed

    • Fixed the schema's getSelfLink() method, which was not passing the request through to the JSON:API resource object.
    Open source →
  16. v1.0.0-alpha.2 02 Feb 2021 pre-release
    Release notes

    Added

    • #2 New withRequest method on the encoder, allows a request to be passed into the encoding process. This is then provided to each JsonApiResource object when it is being encoded. This change was made to bring the resource into line with Laravel's Eloquent resource, which is passed the request when serializing models. (Changes to classes in the Schema namespace to implement this are considered non-breaking, as they are internal classes.)
    • Resource meta can now contain conditional attributes, as the conditional iterator is used when processing meta returned by the JsonApiResource class.

    Fixed

    • #3 Add missing package discovery configuration to composer.json.
    Open source →
  17. v1.0.0-alpha.1 25 Jan 2021 pre-release
    Release notes

    Initial release.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive