sanmark/laravel-standard-json-responses

Library for preparing standardized JSON responses for REST APIs.
2,243
Install
composer require sanmark/laravel-standard-json-responses
Latest Version:v1.5.0
Laravel:5 – 8
License:MIT
Last Updated:Apr 21, 2021
Links: GitHub  ·  Packagist
Maintainer: budhajeewa

Sanmark Laravel Standard JSON Responses

Development Guide

1 - Create a Laravel application. We'll refer to this as the "Scaffolding Laravel Application" (SLA).

2 - In SLA's root, create directory packages/sanmark.

3 - Clone this repository into that directory.

4 - To the SLA's composer.json file's autoload.psr-4 section, add the following:

"Sanmark\\LaravelStandardJsonResponses\\": "packages/sanmark/laravel-standard-json-responses/src"

5 - To the SLA's config/app.php file's providers section, add the following:

Sanmark\LaravelStandardJsonResponses\LaravelStandardJsonResponsesServiceProvider::class,

6 - Setup PHP CS Fixer.

  • Install Composer package friendsofphp/php-cs-fixer on SLA.
  • Create a symlink to the .php_cs.dist file in the SLA's root.
  • To run PHP CS Fixer, issue the command ./vendor/bin/php-cs-fixer fix from SLA's root.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released Laravel License
v1.5.0 ^5.8 || ~6 || ~7 || ~8 MIT
v1.4.0 ^5.8 || ~6 || ~7 MIT
v1.3.0 ^5.8 || ^6.0 MIT
v1.2.0 ^5.8 || ^6.0 MIT
v1.1.0 ^5.8 || ^6.0 MIT