erykai / response
Response json, array and object with translation into any language
Fund package maintenance!
Erykai
Requires
- php: >=8.0
- ext-json: *
README
Receive an object and return it as an array, json or object
Installation
Composer:
"erykai/response": "1.1.*"
Terminal
composer require erykai/response
Response Json
use Erykai\Response\Response; require "vendor/autoload.php"; $response = new Response(); $data = new stdClass(); $data->code = 200; $data->type = 'success'; $data->message = "hello my name is alex vidal and my email is contato@webav.com.br"; $data->data = null; $data->dynamic = "contato@webav.com.br"; echo $response->data($data)->json(); print_r($response->data($data)->array()); print_r($response->data($data)->object());
Contribution
All contributions will be analyzed, if you make more than one change, make the commit one by one.
Support
If you find faults send an email reporting to webav.com.br@gmail.com.
Credits
- Alex de O. Vidal (Developer)
- All contributions (Contributors)
License
The MIT License (MIT). Please see License for more information.