abc/api-problem
Lightweight PHP library for representing API errors using RFC 7807 “Problem Details for HTTP APIs”. Create ApiProblem instances with type, title, status, detail, and instance, then serialize to JSON for consistent error responses.
404, 422) across microservices, improving developer experience and debugging.ActiveModel::Errors).For Executives: "This package standardizes API error responses to RFC 7807, reducing support costs and improving developer experience. For a one-time integration cost, we gain consistency across services, align with industry best practices, and future-proof our APIs for SDK consumers. Low risk (MIT license, minimal dependencies), high reward for scalability."
For Engineering: *"A lightweight Laravel package to replace ad-hoc error responses with RFC-compliant JSON structures. Example:
new ApiProblem('/users/1', 'Not Found', 404, 'User not found');
FormRequest) for input errors.How can I help you explore Laravel packages today?