f9webltd/laravel-api-response-helpers
Laravel API Response Helpers provides a simple trait for consistent JSON API responses in Laravel apps. Easily return success, error, not found, validation, and other common responses with standardized structures and HTTP status codes.
respondNoContent() method by @ultrono in https://github.com/f9webltd/laravel-api-response-helpers/pull/43Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/3.1.0...4.0.0
respondAccepted(), respondConflict() and respondTooManyRequests()respondNoContent() method [@deprecated](https://github.com/deprecated) - in future major releases this method will be present, but accept zero arguments, as to align with RFC 9110 i.e. a 204 response MUST NOT include content. The DocBlock will show in most major code editors as a pre-warning to users. See hereFull Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/3.0.1...3.1.0
^13.0 support by @ultrono in https://github.com/f9webltd/laravel-api-response-helpers/pull/39^8.2 and Laravel ^11.0 / ^12.0 or ^13.0. Going forwards this package will actively track supported Laravel / PHP versions as per Laravel's official support policyFull Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/2.1.0...3.0.0
^13.0 support by @ultrono in https://github.com/f9webltd/laravel-api-response-helpers/pull/38^8.2 and Laravel ^11.0 / ^12.0 or ^13.0. Going forwards this package will actively track supported Laravel / PHP versions as per Laravel's official support policyFull Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/2.1.0...3.0.0
Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/2.1.0...2.1.1
Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/2.0.1...2.1.0
Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/2.0.0...2.0.1
Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/1.5.3...2.0.0
Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/1.5.2...1.5.3
Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/1.5.1...1.5.2
Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/1.5.0...1.5.1
composer.lock by @chapeupreto in https://github.com/f9webltd/laravel-api-response-helpers/pull/17Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/1.4.2...1.50
Improve test coverage. Add tests to cover usage of Laravel API resources, Laravel collections and Laravel Eloquent Collections (thanks @kzvonov and @AdamGaskins ) 🍾
Refactor tests to reduce code duplication (via data providers) and test additional data types (thanks @rkhan06, @JacekAndrzejewski) 🎸
JsonResources (and any other Arrayables/JsonSerializables) (#10, thanks @AdamGaskins) 🤖Full Changelog: https://github.com/f9webltd/laravel-api-response-helpers/compare/1.3.1...1.3.2
Minor release, fixed some typos and improved wording within readme 💯
Support >= Laravel 6, 7 and 8. Lower PHP PHP requirements to ^7.4|^8.0. Fixes #3
Add respondNoContent method :robot:
Allow the respondCreated method to optionally return data :+1:
respondFailedValidation method^8.0Add respondFailedValidation method
Add readme to document available methods
Fix further issues
Fix a few initial issues
Initial release
How can I help you explore Laravel packages today?