PHPackages                             oro/guzzle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. oro/guzzle

ActiveLibrary[Framework](/categories/framework)

oro/guzzle
==========

This is a fork of an older verions of PHP HTTP client - https://github.com/guzzle/guzzle3. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle

v3.7.4(6y ago)010MITPHPPHP &gt;=5.3.3

Since May 18Pushed 6y agoCompare

[ Source](https://github.com/oroinc/guzzle3)[ Packagist](https://packagist.org/packages/oro/guzzle)[ Docs](http://guzzlephp.org/)[ RSS](/packages/oro-guzzle/feed)WikiDiscussions branch-3.7 Synced 6d ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

Guzzle, PHP HTTP client and webservice framework
================================================

[](#guzzle-php-http-client-and-webservice-framework)

[![Latest Stable Version](https://camo.githubusercontent.com/75817cdd09386b140c93d14e37c2bacddc6f2eb700fa4e9044f52242bc9257f9/68747470733a2f2f706f7365722e707567782e6f72672f67757a7a6c652f67757a7a6c652f76657273696f6e2e706e67)](https://packagist.org/packages/guzzle/guzzle) [![Composer Downloads](https://camo.githubusercontent.com/07b75aa8274aeeca8e19e38f8eca0524b17b26cd084860d9671851c29356d57a/68747470733a2f2f706f7365722e707567782e6f72672f67757a7a6c652f67757a7a6c652f642f746f74616c2e706e67)](https://packagist.org/packages/guzzle/guzzle) [![Build Status](https://camo.githubusercontent.com/9cd75ca836997ee702996006fd87be2df423d1cf6853ee7aa7b83c036050b38d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f67757a7a6c652f67757a7a6c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/guzzle/guzzle)

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

- Extremely powerful API provides all the power of cURL with a simple interface.
- Truly take advantage of HTTP/1.1 with persistent connections, connection pooling, and parallel requests.
- Service description DSL allows you build awesome web service clients faster.
- Symfony2 event-based plugin system allows you to completely modify the behavior of a request.

Get answers with: [Documentation](http://www.guzzlephp.org/), [Forums](https://groups.google.com/forum/?hl=en#!forum/guzzle), IRC (#guzzlephp @ irc.freenode.net)

```
// Really simple using a static facade
Guzzle\Http\StaticClient::mount();
$response = Guzzle::get('http://guzzlephp.org');

// More control using a client class
$client = new \Guzzle\Http\Client('http://guzzlephp.org');
$request = $client->get('/');
$response = $request->send();
```

### Installing via Composer

[](#installing-via-composer)

The recommended way to install Guzzle is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add Guzzle as a dependency
php composer.phar require guzzle/guzzle:~3.7
```

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

```
require 'vendor/autoload.php';
```

### Installing via phar

[](#installing-via-phar)

[Download the phar](http://guzzlephp.org/guzzle.phar) and include it in your project ([minimal phar](http://guzzlephp.org/guzzle-min.phar))

Features
--------

[](#features)

- Supports GET, HEAD, POST, DELETE, PUT, PATCH, OPTIONS, and any other custom HTTP method
- Allows full access to request and response headers
- Persistent connections are implicitly managed by Guzzle, resulting in huge performance benefits
- [Send requests in parallel](http://guzzlephp.org/tour/http.html#send-http-requests-in-parallel)
- Cookie sessions can be maintained between requests using the [CookiePlugin](http://guzzlephp.org/tour/http.html#cookie-session-plugin)
- Allows custom [entity bodies](http://guzzlephp.org/tour/http.html#entity-bodies), including sending data from a PHP stream and downloading data to a PHP stream
- Responses can be cached and served from cache using the [caching forward proxy plugin](http://guzzlephp.org/tour/http.html#php-based-caching-forward-proxy)
- Failed requests can be retried using [truncated exponential backoff](http://guzzlephp.org/tour/http.html#truncated-exponential-backoff) with custom retry policies
- Entity bodies can be validated automatically using Content-MD5 headers and the [MD5 hash validator plugin](http://guzzlephp.org/tour/http.html#md5-hash-validator-plugin)
- All data sent over the wire can be logged using the [LogPlugin](http://guzzlephp.org/tour/http.html#over-the-wire-logging)
- Subject/Observer signal slot system for unobtrusively [modifying request behavior](http://guzzlephp.org/guide/http/creating_plugins.html)
- Supports all of the features of libcurl including authentication, compression, redirects, SSL, proxies, etc
- Web service client framework for building future-proof interfaces to web services
- Includes a [service description DSL](http://guzzlephp.org/guide/service/service_descriptions.html) for quickly building webservice clients
- Full support for [URI templates](http://tools.ietf.org/html/rfc6570)
- Advanced batching functionality to efficiently send requests or commands in parallel with customizable batch sizes and transfer strategies

HTTP basics
-----------

[](#http-basics)

```
