Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (14 loc) · 1.42 KB

comparison.md

File metadata and controls

25 lines (14 loc) · 1.42 KB

::: danger This package won't be receiving any feature updates. If you didn't see, you should check our next version of this package clicking here. :::

Comparison

Of course there are lot more libraries out there for Laravel and even more generic (for PHP) that we can also use instead of this one.

So here we'll explain the differences between them and this one.

laravel-json-api

This is much more complex as it adds another layer of complexity on our application called Schemas so it doesn't only provide JSON:API parsing of the Eloquent models but also validation and comes with more extra stuff but with a much bigger sacrifice (need to write much more code, while our solution is almost code-less).

Also it comes licensed as Apache 2.0, while our is following the same Laravel's license: MIT.

Fractal

Much simpler than the one above, but still adds a new layer (as it is not a Laravel package).

So it's much of the same, doesn't take advantage of the tools that the framework itself already provides like the API resources. Still a very good option thought as its one of the official The PHP League packages, so you'll expect a very good support.