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?
However Fractal is by far the easiest package to get started with and work with: https://fractal.thephpleague.com/ It might not 100% fit the implementation, but it sure saves you time and makes your code very readable!
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.
@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.