Lightweight HTTP client

Installs: 2 440 120

Dependents: 325

Stars: 1 146

Watchers: 51

Forks: 177

Open Issues: 61

Language: PHP

v0.15 2015-06-25 17:26 UTC

README

Build Status

Buzz is a lightweight PHP 5.3 library for issuing HTTP requests.

<?php

$browser = new Buzz\Browser();
$response = $browser->get('http://www.google.com');

echo $browser->getLastRequest()."\n";
echo $response;

You can also use the low-level HTTP classes directly.

<?php

$request = new Buzz\Message\Request('HEAD', '/', 'http://google.com');
$response = new Buzz\Message\Response();

$client = new Buzz\Client\FileGetContents();
$client->send($request, $response);

echo $request;
echo $response;