Download the PHP package alexcane/php-json-response without Composer
On this page you can find all versions of the php package alexcane/php-json-response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alexcane/php-json-response
More information about alexcane/php-json-response
Files in alexcane/php-json-response
Download alexcane/php-json-response
More information about alexcane/php-json-response
Files in alexcane/php-json-response
Vendor alexcane
Package php-json-response
Short Description Personal PHP Class Library for format json response
License MIT
Homepage https://github.com/alexcane
Package php-json-response
Short Description Personal PHP Class Library for format json response
License MIT
Homepage https://github.com/alexcane
Please rate this library. Is it a good library?
Informations about the package php-json-response
PHPJsonResponse
Personal PHP Class Library for format json response
This is a personal library to standardise my json response on all my projects.
Response structure
status
: string 'error' or 'success'.error_msg
: array of errors message.data
: array of data provided.response
: mixed value is possible like object, Class or HTML string, etc.
How to use ?
1) Instance the class
2) Check if your data is valid and add your error message.
3) Before return response you can check if there are errors.
4) 2 ways to return response : JSON string or Array.
All versions of php-json-response with dependencies
PHP Build Version
Package Version
Requires
ext-json Version
*
php Version ^7.4 || ^8.0
php Version ^7.4 || ^8.0
The package alexcane/php-json-response contains the following files
Loading the files please wait ....