Download the PHP package jongoly/api-standardizer without Composer
On this page you can find all versions of the php package jongoly/api-standardizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jongoly/api-standardizer
More information about jongoly/api-standardizer
Files in jongoly/api-standardizer
Download jongoly/api-standardizer
More information about jongoly/api-standardizer
Files in jongoly/api-standardizer
Vendor jongoly
Package api-standardizer
Short Description Standardized JSON API responses and global exception handling for Laravel.
License MIT
Package api-standardizer
Short Description Standardized JSON API responses and global exception handling for Laravel.
License MIT
Please rate this library. Is it a good library?
Informations about the package api-standardizer
api-standardizer
provides a unified trait to standardizes success, error payload.
A lightweight Laravel package to force consistent, clean, and predictable JSON structures across your API endpoints using a single trait.
- standardizes all success and error responses.
- lightweight: no external dependencies outside Laravel core framework.
Installation
via Composer:
Publish Configuration
This creates a config/api-standardizer.php file in your application root:
Usage
Success Response Example
Output Json (Status 200):
Errir Response Example
Output Json(Status 422):
{
"success": false,
"message": "Validation Failed.",
"errors": {
"email": [
"The Email must be valid."
]
}
}
---All versions of api-standardizer with dependencies
PHP Build Version
Package Version
The package jongoly/api-standardizer contains the following files
Loading the files please wait ...