enigma-php/http
最新稳定版本:1.0.1
Composer 安装命令:
composer require enigma-php/http
包简介
A simple supportive package for working with http requests
README 文档
README
EnigmaPHP Http is a small and simple supportive package for working with http requests and responses.
Installing EnigmaPHP Http
composer require enigma-php/http
Usage
Enums
RequestMethod : This class (enum) represents a RequestMethod and therefore contains 9 cases.
Example :
RequestMethod::GET
#with value, results in GET
RequestMethod::GET->value
ResponseStatus: This class (enum) represents a ResponseStatus and therefore contains a large number of cases with a specific response status.
From each status we can use :
- The numeric value representation with :
`ResponseStatus::OK->value` - The Explanation like
OKwith :`ResponseStatus::OK->getExplanation()` - The status class like
Successfulwith :`ResponseStatus::OK->getStatusClass()`
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-02