Download the PHP package cherry-project/response without Composer
On this page you can find all versions of the php package cherry-project/response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cherry-project/response
More information about cherry-project/response
Files in cherry-project/response
Download cherry-project/response
More information about cherry-project/response
Files in cherry-project/response
Vendor cherry-project
Package response
Short Description Cherry-project Response class
License MIT
Homepage https://github.com/ABGEO07/cherry-response
Package response
Short Description Cherry-project Response class
License MIT
Homepage https://github.com/ABGEO07/cherry-response
Please rate this library. Is it a good library?
Informations about the package response
Cherry-Response
The Cherry-project Response wrapper
Including
Install from composer composer require cherry-project/response
Include Autoloader in your main file (Ex.: index.php)
Class Request
Import class
Crete class new object
Prepare data for transmission (Ex.: Array)
For sending response use sendResponse() method
The method takes 3 arguments:
- Content (Required; Mixed) - The data for returning;
- Status Code (Optional; 200 by default; Integer) - The HTTP Status Code;
- HTTP Headers (Optional; empty by default; Key
=>
Value Array) - The HTTP Headers;
2019 © Cherry-project
All versions of response with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package cherry-project/response contains the following files
Loading the files please wait ....