Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP's lightweight HTTP client
PHP

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Buzz
test
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

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;
Something went wrong with that request. Please try again.