saxulum / saxulum-http-client-adapter-vinelab
This package is abandoned and no longer maintained.
No replacement package was suggested.
Saxulum Http Client Adapter Vinelab
1.0.1
2014-11-04 07:59 UTC
Requires
- php: >=5.3
- saxulum/saxulum-http-client-interface: ~1.5
- vinelab/http: ~1.1,>=1.1.1
Requires (Dev)
- phpunit/phpunit: ~4.0
Provides
This package is not auto-updated.
Last update: 2020-09-22 19:09:57 UTC
README
Features
- Provides a http client interface adapter for vinelab
Requirements
- PHP 5.3+
- Vinelab ~1.1 (PHP 5.4+)
Installation
Through Composer as saxulum/saxulum-http-client-adapter-vinelab.
Usage
use Saxulum\HttpClient\Vinelab\HttpClient;
use Saxulum\HttpClient\Request;
$httpClient = new HttpClient();
$response = $httpClient->request(new Request(
'1.1',
Request::METHOD_GET,
'http://en.wikipedia.org',
array(
'Connection' => 'close',
)
));
You can inject your own vinelab client instance while creating the http client instance.
use Vinelab\Http\Client;
use Saxulum\HttpClient\Vinelab\HttpClient;
$client = new Client;
$httpClient = new HttpClient($client);