php-http / client-common
Common HTTP Client implementations and tools for HTTPlug
Installs: 173 398 921
Dependents: 574
Suggesters: 4
Security: 0
Stars: 1 022
Watchers: 11
Forks: 54
Open Issues: 14
Requires
- php: ^7.1 || ^8.0
- php-http/httplug: ^2.0
- php-http/message: ^1.6
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0 || ^2.0
- symfony/options-resolver: ~4.0.15 || ~4.1.9 || ^4.2.1 || ^5.0 || ^6.0 || ^7.0
- symfony/polyfill-php80: ^1.17
Requires (Dev)
- doctrine/instantiator: ^1.1
- guzzlehttp/psr7: ^1.4
- nyholm/psr7: ^1.2
- phpspec/phpspec: ^5.1 || ^6.3 || ^7.1
- phpspec/prophecy: ^1.10.2
- phpunit/phpunit: ^7.5.20 || ^8.5.33 || ^9.6.7
Suggests
- ext-json: To detect JSON responses with the ContentTypePlugin
- ext-libxml: To detect XML responses with the ContentTypePlugin
- php-http/cache-plugin: PSR-6 Cache plugin
- php-http/logger-plugin: PSR-3 Logger plugin
- php-http/stopwatch-plugin: Symfony Stopwatch plugin
This package is auto-updated.
Last update: 2024-10-24 06:32:10 UTC
README
Common HTTP Client implementations and tools for HTTPlug.
Install
Via Composer
$ composer require php-http/client-common
Usage
This package provides common tools for HTTP Clients:
- BatchClient to handle sending requests in parallel
- A convenience client with HTTP method names as class methods
- Emulator, decorator layers for sync/async clients
Documentation
Please see the official documentation.
Testing
$ composer test
Contributing
Please see our contributing guide.
Security
If you discover any security related issues, please contact us at security@php-http.org.
License
The MIT License (MIT). Please see License File for more information.