alexfigures/symfony-jsonapi-bundle
fields and include parameters to reduce bandwidth.Adopt if:
include).Look elsewhere if:
knp/paginator or api-platform instead).mercure or api-platform).api-platform or graphql-php).For Executives: *"This package lets us launch a JSON:API-compliant backend in weeks, not months. It’s like using Symfony’s built-in security or validation—98.5% of the JSON:API spec is handled out of the box, so our team can focus on business logic. For example:
fields[articles]=title,createdAt).For Engineers: *"This is the Swiss Army knife for JSON:API in Symfony 7. Key perks:
Example: To expose a Post resource with relationships:
// src/Controller/PostController.php
use AlexFigures\Symfony\JsonApi\Action\CollectionAction;
use AlexFigures\Symfony\JsonApi\Action\ResourceAction;
class PostController extends AbstractJsonApiController
{
#[CollectionAction] public function collection(): JsonApiCollection { ... }
#[ResourceAction] public function resource(Post $post): JsonApiResource { ... }
}
No annotations, no boilerplate—just JSON:API. Start with make install and make test to verify compliance."*
How can I help you explore Laravel packages today?