luongtran / http-adapter
Issue HTTP request for PHP 5.3+.
0.7.3
2024-08-22 06:39 UTC
Requires
- php: >=5.4.8
- phly/http: 0.14.0
- psr/http-message: 1.0.1
Requires (Dev)
- ext-curl: *
- cakephp/cakephp: ^2.5.7
- guzzle/guzzle: ^3.9.2
- guzzlehttp/guzzle: >=4.1.4,<6.0.0
- guzzlehttp/streams: >=1.5.0,<4.0.0
- kriswallsmith/buzz: ^0.13
- nategood/httpful: ^0.2.17
- phpunit/phpunit: ^4.0
- phpunit/phpunit-mock-objects: dev-matcher-verify as 2.3.x-dev
- psr/log: ^1.0
- react/dns: ^0.4.1
- react/http-client: ^0.4
- satooshi/php-coveralls: ^0.6
- symfony/event-dispatcher: ^2.0
- zendframework/zend-http: ^2.3.4
- zendframework/zendframework1: ^1.12.9
Suggests
- ext-curl: Allows you to use the cURL adapter
- 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
- symfony/event-dispatcher: Allows you to use the event lifecycle
- symfony/stopwatch: Allows you to use the stopwatch http adapter and event subscriber
- zendframework/zend-http: Allows you to use the Zend 2 adapter
- zendframework/zendframework1: Allows you to use the Zend 1 adapter
README
The library allows to issue HTTP requests with PHP 5.4.8+. The supported adapters are:
Additionally, it follows the PSR-7 Standard which defines how http message should be implemented.
Documentation
Cookbook
- Log requests, responses and exceptions
- Journalize requests and responses
- Throw exceptions for errored responses
- Retry errored requests
- Follow redirects
- Manage cookies
Testing
The library is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.
Contribute
We love contributors! The library is open source, if you'd like to contribute, feel free to propose a PR!
License
The Ivory Http Adapter is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.