kars/json-response
Composer 安装命令:
composer require kars/json-response
包简介
Returns json format when this package gives value and data properties
关键字:
README 文档
README
Returns json format when this package gives value and data properties
Installation
composer require kars/json-response
Use
require_once "vendor/autoload.php";
$test= [
'name' => 'mehmet',
'email' => 'mehmetcanak99@gmail.com',
];
new \Kars\JsonResponse\Response('ok', '', $test);
Params (required)
- success or ok - 200 http status
- unauthorized - 401 http status
- exception - 500 http status
Response
{
"status":"ok",
"data":
{
"name":"mehmet",
"email":"mehmetcanak99@gmail.com"
}
}
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-22