PHP code example of sirsquall / buzz
1. Go to this page and download the library: Download sirsquall/buzz library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sirsquall / buzz example snippets
$response = Buzz::get('http://www.google.com');
echo $response;
echo $response->getContent;
$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;