nyholm / http-client
一个轻量级且超快的HTTP客户端
0.1.0
2016-07-13 14:14 UTC
Requires
- php: ^5.6|^7.0
- ext-curl: *
- php-http/discovery: ^0.9
- php-http/httplug: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^1.0
- php-http/adapter-integration-tests: ^0.4
- phpunit/phpunit: ^4.8
Provides
This package is auto-updated.
Last update: 2024-08-25 06:48:08 UTC
README
一个超级轻量级的HTTP客户端,用于发送PSR-7 HTTP消息。
安装
通过Composer
$ composer require nyholm/http-client
用法
// Create a PSR-7 request $request = MessageFactoryDiscovery::find()->createRequest('GET', 'http://example.com'); // You will get back a PSR-7 response $response = (new Client)->sendRequest($request);
文档
此客户端不进行任何配置。如果您需要更多功能,应使用HTTPlug的插件。请参阅他们的文档。
MIT许可证(MIT)。有关更多信息,请参阅许可文件。