logiek/http-status-codes
最新稳定版本:1.4.0
Composer 安装命令:
composer require logiek/http-status-codes
包简介
Constants enumerating the HTTP Status Codes. Based on the HTTP Status Code Registry.
README 文档
README
⚠️ THIS PACKAGE IS NO LONGER MAINTAINED ⚠️
This repository has been discontinued and is no longer receiving updates or support.
http-status-codes
Constants enumerating the HTTP Status Codes. Based on the HTTP Status Code Registry.
Installation
You can install the package via Composer:
composer require logiek/http-status-codes
Usage
use Logiek\Http\StatusCode; StatusCode::HTTP_OK; // 200 StatusCode::get(); // [100 => 'Continue', 101 => 'Switching Protocols', ...] StatusCode::getReasonPhrase(StatusCode::HTTP_OK); // OK StatusCode::getStatusCode('Not Found'); // 404
Changelog
Please see the CHANGELOG for more information about recent changes.
Testing
Run the tests with:
composer test
License
This project is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 1.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-01