egeloen / http-adapter
1.0.2
2017-01-12 17:33 UTC
Requires
- php: >=5.4.8
- zendframework/zend-diactoros: ^1.1
Requires (Dev)
- ext-curl: *
- cakephp/cakephp: ^3.0.3
- doctrine/cache: ^1.4
- guzzle/guzzle: ^3.9.4@dev
- guzzlehttp/guzzle: ^4.1.4|^5.0|^6.0
- kriswallsmith/buzz: ~0.13
- nategood/httpful: ^0.2.17
- phpunit/phpunit: ^4.0|^5.0
- phpunit/phpunit-mock-objects: ^2.1|^3.0
- psr/log: ^1.0
- react/dns: ^0.4.1
- react/http-client: ^0.4
- rmccue/requests: ^1.7
- symfony/event-dispatcher: ^2.0|^3.0
- symfony/phpunit-bridge: ^2.7|^3.0
- symfony/stopwatch: ^2.2|^3.0
- tedivm/stash: ~0.13
- zendframework/zend-http: ^2.3.4
- zendframework/zendframework1: ^1.12.9
Suggests
- ext-curl: Allows you to use the cURL adapter
- ext-http: Allows you to use the PECL adapter
- doctrine/cache: Allows you to use the cache event subscriber
- guzzle/guzzle: Allows you to use the Guzzle 3 adapter
- guzzlehttp/guzzle: Allows you to use the Guzzle 4 adapter
- kriswallsmith/buzz: Allows you to use the Buzz adapter
- nategood/httpful: Allows you to use the Httpful adapter
- psr/log: Allows you to use the logger event subscriber
- rmccue/requests: Allows you to use the Requests adapter
- symfony/event-dispatcher: Allows you to use the event lifecycle
- symfony/stopwatch: Allows you to use the stopwatch http adapter and event subscriber
- tedivm/stash: Allows you to use the cache event subscriber
- zendframework/zend-http: Allows you to use the Zend 2 adapter
- zendframework/zendframework1: Allows you to use the Zend 1 adapter
README
在开始之前,请注意 该包已被弃用,推荐使用 php-http。这意味着会接受错误修复,但不会添加新功能(除非是已经打开的 PR)。
介绍
该库允许使用 PHP 5.4.8+ 发送 HTTP 请求。支持的适配器包括
- Buzz
- Cake
- cURL
- FileGetContents
- Fopen
- Guzzle3
- Guzzle4
- Guzzle5
- Guzzle6
- Httpful
- Pecl Http
- React
- Requests
- Socket
- Zend1
- Zend2
此外,它遵循 PSR-7 标准,该标准定义了 http 消息的实现方式。
文档
食谱
测试
该库完全由 PHPUnit 单元测试,代码覆盖率接近 100%。要执行测试套件,请检查 Travis 配置。
贡献
我们欢迎贡献者!该库是开源的,如果你想贡献,请随时提出 PR!你可以参考 CONTRIBUTING 文件,该文件将解释如何设置项目。
许可
Ivory Http Adapter 采用 MIT 许可证。有关完整的版权和许可信息,请阅读与源代码一起分发的 LICENSE 文件。