perf/http-status
最新稳定版本:3.1.0
Composer 安装命令:
composer require perf/http-status
包简介
Allows to interact with HTTP status strings to be injected into HTTP headers.
README 文档
README
Allows to interact with HTTP status strings to be injected into HTTP headers.
Installation
composer require perf/http-status
Usage
Concrete calls
<?php use perf\HttpStatus\HttpStatusRepository; $repository = HttpStatusRepository::createDefault(); $httpStatus = $repository->get(404); echo $httpStatus->getReason(); // Will print "Not Found" echo $httpStatus->toHeader(); // Will print "HTTP/1.1 404 Not Found"
Static calls
<?php use perf\HttpStatus\HttpStatusRepository; $httpStatus = HttpStatusRepository::createDefault()->get(404); echo $httpStatus->getReason(); // Will print "Not Found" echo $httpStatus->toHeader(); // Will print "HTTP/1.1 404 Not Found"
统计信息
- 总下载量: 4.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-15