Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GimmeMylanta's avatar

Suggestions for JSON API response package

Hey Guys,

I was wondering if anyone could suggested a good package they have used to format their JSON API responses as close as possible to JSON-API (http://jsonapi.org/) specifications?

Cheers all

0 likes
8 replies
GimmeMylanta's avatar

@bobbybouwmann thank you for that, it looks like the cloudcreativity package is the one that fits the specifications right.

Nice one :) Thanks

GimmeMylanta's avatar

Hey @bobbybouwmann ... I am going to change my answer, as im currently reading 'Build APIs you wont hate' and it seems as if the Fractal package is actually developed by the author of the book.

bobbybouwmann's avatar

@Chris1981 The fractal package is not doing the same as the Laravel Eloquent Resources. Both have a different output and different structures. For a basic api the Eloquent Resources are fine, but for a more controlled output the fractal package will offer better output for you.

If you want a good implementation for fractal in Laravel you should use this package: https://github.com/spatie/laravel-fractal

Please or to participate in this conversation.