zlik/http-status-codes-trait
Composer 安装命令:
composer require zlik/http-status-codes-trait
包简介
A PHP trait which defines all standard HTTP status codes.
README 文档
README
#HTTP Status Codes Trait
A PHP trait which defines all standard HTTP status codes.
#Installing with Composer
"require": { "zlik/http-status-codes-trait": "1.0" }
#Usage
Mix the \Zlik\HttpStatusCodes trait into your class and utilize it's public properties to get HTTP status codes.
For example:
class Foo { use \Zlik\HttpStatusCodes; } $foo = new Foo; echo $foo->HTTP_NOT_FOUND; //outputs '404'
#Requirements
PHP 5.4+
统计信息
- 总下载量: 225
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-20