saxulum/saxulum-http-client-adapter-buzz

This package is abandoned and no longer maintained. No replacement package was suggested.

Saxulum Http Client Adapter Buzz

1.0.4 2014-10-24 19:48 UTC

This package is not auto-updated.

Last update: 2020-09-22 19:08:05 UTC


README

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality

Features

  • Provides a http client interface adapter for buzz

Requirements

  • PHP 5.3+
  • Buzz ~0.13

Installation

Through Composer as saxulum/saxulum-http-client-adapter-buzz.

Usage

use Saxulum\HttpClient\Buzz\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 buzz browser instance while creating the http client instance.

use Buzz\Browser;
use Saxulum\HttpClient\Buzz\HttpClient;

$browser = new Browser;
$httpClient = new HttpClient($browser);