erykai/response
最新稳定版本:v1.1.0
Composer 安装命令:
composer require erykai/response
包简介
Response json, array and object with translation into any language
README 文档
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.
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-11