Library for preparing standardized JSON responses for REST APIs.
sanmark/laravel-standard-json-responses is a Laravel package for library for preparing standardized json responses for rest apis..
It currently has 0 GitHub stars and 2.243 downloads on Packagist (latest version v1.5.0).
Install it with composer require sanmark/laravel-standard-json-responses.
Discover more Laravel packages by sanmark
or browse all Laravel packages to compare alternatives.
Last updated
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.
friendsofphp/php-cs-fixer on SLA..php_cs.dist file in the SLA's root../vendor/bin/php-cs-fixer fix from SLA's root.