strever/resp-code

响应码的命名规范

2.0.1 2016-11-21 06:20 UTC

This package is not auto-updated.

Last update: 2024-09-20 21:47:38 UTC


README

响应码的命名规范

安装

composer require strever/resp-code

使用文档

\Strever\Util\Resp::success(['id' => 1]);

\Strever\Util\Resp::fail(404);

\Strever\Util\Resp::notFound();

API 列表

  • 失败
  • 失败并返回 JSON
  • 未找到
  • 无效参数
  • 成功
  • 成功并返回 JSON...

单元测试

$ phpunit tests/Util/RespTest.php

联系方式

<strever@.qq.com>

其他资源

赞助我

支付宝

许可

MIT