56 lines
1.8 KiB
Markdown
56 lines
1.8 KiB
Markdown
|
# HTTP Client Common
|
||
|
|
||
|
[](https://github.com/php-http/client-common/releases)
|
||
|
[](LICENSE)
|
||
|
[](https://travis-ci.org/php-http/client-common)
|
||
|
[](https://scrutinizer-ci.com/g/php-http/client-common)
|
||
|
[](https://scrutinizer-ci.com/g/php-http/client-common)
|
||
|
[](https://packagist.org/packages/php-http/client-common)
|
||
|
|
||
|
**Common HTTP Client implementations and tools for HTTPlug.**
|
||
|
|
||
|
|
||
|
## Install
|
||
|
|
||
|
Via Composer
|
||
|
|
||
|
``` bash
|
||
|
$ 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](http://docs.php-http.org/en/latest/components/client-common.html).
|
||
|
|
||
|
|
||
|
## Testing
|
||
|
|
||
|
``` bash
|
||
|
$ composer test
|
||
|
```
|
||
|
|
||
|
|
||
|
## Contributing
|
||
|
|
||
|
Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).
|
||
|
|
||
|
|
||
|
## Security
|
||
|
|
||
|
If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).
|
||
|
|
||
|
|
||
|
## License
|
||
|
|
||
|
The MIT License (MIT). Please see [License File](LICENSE) for more information.
|