f9webltd/laravel-api-response-helpers
Laravel package providing a simple trait to generate consistent JSON API responses across your app. Works with PHP 8.2+ and Laravel 11–13, offering helper methods for common success and error response patterns.
^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?