php-extended / php-http-message-psr7
psr7 接口库的另一种实现:php-fig/http-message
7.0.6
2024-07-31 13:44 UTC
Requires
- php: >=8.0
- php-extended/php-domain-object: ^7
- php-extended/polyfill-str-levenshtein: ^1
- psr/http-message: ^2
Requires (Dev)
Provides
- dev-master
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.2
- 5.0.1
- 5.0.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.2.23
- 3.2.22
- 3.2.21
- 3.2.20
- 3.2.19
- 3.2.18
- 3.2.17
- 3.2.16
- 3.2.15
- 3.2.14
- 3.2.13
- 3.2.12
- 3.2.11
- 3.2.10
- 3.2.9
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-08-31 12:04:06 UTC
README
psr7 接口库的另一种实现:php-fig/http-message
安装
此库的安装通过 composer 进行,所有类的自动加载都通过它们的自动加载器完成。
- 从他们的网站下载
composer.phar
。 - 然后运行以下命令将此库作为依赖项安装:
php composer.phar php-extended/php-http-message-psr7 ^7
基本用法
此库实现了 psr7 的规则,这些规则可以在这里找到。
接口及其实现如下所示
接口 | 实现 |
---|---|
Psr\Http\Message\MessageInterface | PhpExtended\HttpMessage\Message |
Psr\Http\Message\RequestInterface | PhpExtended\HttpMessage\Request |
Psr\Http\Message\ResponseInterface | PhpExtended\HttpMessage\Response |
Psr\Http\Message\ServerRequestInterface | PhpExtended\HttpMessage\ServerRequest |
Psr\Http\Message\StreamInterface | PhpExtended\HttpMessage\StringStream |
PhpExtended\HttpMessage\FileStream | |
Psr\Http\Message\UploadedFileInterface | PhpExtended\HttpMessage\UploadedFile |
Psr\Http\Message\UriInterface | PhpExtended\HttpMessage\Uri |
许可协议
MIT (查看许可文件).