osama-98/laravel-response-api
A Laravel package for building consistent API responses. It provides helpers to return standardized JSON with success flags, messages, data, and HTTP status codes, simplifying controllers and keeping error and success formats uniform across your application.
created(), updated(), destroyed(), pagination payloads). Adopting it lets the team spend roadmap capacity on domain features instead of re-implementing response helpers in every controller./v2), and OpenAPI documentation — every consumer downstream depends on a stable envelope.Adopt when:
Look elsewhere when:
For executives: This is a small, low-risk utility dependency that standardizes how our API talks to clients. The 2.0.1 release is maintenance-only — no new features, no breaking changes — but it ships with 100% test coverage and passes the strictest static analysis settings our engineering standard uses. Translation: it reduces the engineering days we'd otherwise spend rebuilding response plumbing, and it lowers the risk of inconsistent API behavior surfacing as partner integration bugs.
For engineering: Small surface area (facade, builder, service provider), now at 100% coverage including created(), updated(), destroyed() and pagination paths, with PHPStan max errors resolved and Rector/PHPStan upgraded to 2.x. Recommended adoption path: wrap it in a thin internal adapter (our own ApiResponder interface) so controllers depend on our abstraction, not the package — this keeps the upgrade path open and makes a future swap a one-file change.
Ask: Approve adoption as a pilot on one new endpoint, with the adapter in place and a one-sprint check-in on developer ergonomics and client feedback.
How can I help you explore Laravel packages today?