nyholm / http-client
A light weight and super fast HTTP client
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-10-25 07:05:40 UTC
README
A super light HTTP client that sends PSR-7 HTTP messages.
Install
Via Composer
$ composer require nyholm/http-client
Usage
// 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);
Documentation
There is no configuration of any kind that could be done to this client. If you want more functionality you should use Plugins to HTTPlug. See their documentation.
The MIT License (MIT). Please see License File for more information.