Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Guzzle is a PHP HTTP client and framework for building RESTful web service clients

Guzzle, PHP HTTP client and webservice framework

Build Status

Guzzle is a PHP HTTP client that makes it easy to work with HTTP/1.1 and takes the pain out of consuming web services.

$client = new GuzzleHttp\Client();
$response = $client->get('');
$res = $client->get('', ['auth' =>  ['user', 'pass']]);
echo $res->getStatusCode();
// 200
echo $res->getHeader('content-type');
// 'application/json; charset=utf8'
echo $res->getBody();
// {"type":"User"...'
// Outputs the JSON decoded data
  • Pluggable HTTP adapters that can send requests serially or in parallel
  • Doesn't require cURL, but uses cURL by default
  • Streams data for both uploads and downloads
  • Provides event hooks & plugins for cookies, caching, logging, OAuth, mocks, etc...
  • Keep-Alive & connection pooling
  • SSL Verification
  • Automatic decompression of response bodies
  • Streaming multipart file uploads
  • Connection timeouts

Get more information and answers with the Documentation, Forums, and IRC (#guzzlephp @

Installing via Composer

The recommended way to install Guzzle is through Composer.

# Install Composer
curl -sS | php

Next, update your project's composer.json file to include Guzzle:

    "require": {
        "guzzlehttp/guzzle": "~4.0"

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';


More information can be found in the online documentation at

Something went wrong with that request. Please try again.