mac1qc/http-status-code
最新稳定版本:v1.0.2
Composer 安装命令:
composer require mac1qc/http-status-code
包简介
Helper to get HTTP status code by using common name
README 文档
README
Helper to get HTTP status code by using common name, so it's easier to read while coding.
How to install?
In your project, run in your terminal
$ composer require mac1qc/http-status-code
How to use?
Instead of writting your Status code in number like:
if ($statusCode === 200) { return 'something'; }
Do something like:
if ($statusCode === StatusCode::OK->value) { return 'something'; }
Wanna show your appreciation?
If you find that library useful, you can buy me a coffee/beer
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-11