richtoms/laravel-jsend

A JSend wrapper for Laravel

v0.1 2019-03-25 21:43 UTC

This package is auto-updated.

Last update: 2024-09-26 10:03:40 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

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.