richtoms / laravel-jsend
A JSend wrapper for Laravel
v0.1
2019-03-25 21:43 UTC
Requires
- php: ^7.1
- illuminate/support: 5.8.*
Requires (Dev)
- orchestra/testbench: 3.8.*
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-03-26 10:56:08 UTC
README
A package designed to create JSend responses for Laravel. See the JSend specification.
Installation
You can install the package via composer:
composer require richtoms/laravel-jsend
Usage
use RichToms\LaravelJSend\JSendFacade as JSend; // Using the facade return JSend::build($data, $statusCode, $headers); // Using the response macro return response()->jsend($data, $statusCode, $headers);
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email richard@toms.dev instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.