fyre/negotiate
Composer 安装命令:
composer require fyre/negotiate
包简介
A negotiation library.
README 文档
README
FyreNegotiate is a free, open-source HTTP negotiation library for PHP.
Table Of Contents
Installation
Using Composer
composer require fyre/negotiate
In PHP:
use Fyre\Http\Negotiate;
Methods
Content
Negotiate a content type.
$acceptedis a string representing theAcceptheader.$supportedis an array containing the supported content values.$strictis a boolean indicating whether to not use a default fallback, and will default to false.
Negotiate::content($accepted, $supported, $strict);
Encoding
Negotiate an encoding.
$acceptedis a string representing theAccept-Encodingheader.$supportedis an array containing the supported encoding values.
Negotiate::encoding($accepted, $supported);
Language
Negotiate a language.
$acceptedis a string representing theAccept-Languageheader.$supportedis an array containing the supported language values.
Negotiate::language($accepted, $supported);
统计信息
- 总下载量: 333
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-02