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, Forums, IRC (#guzzlephp @ irc.freenode.net)
The recommended way to install Guzzle is through Composer.
# 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';
As of the 3.7.4 release, each release of Guzzle includes a "guzzle.phar" file that includes all of the files needed to run Guzzle and all of Guzzle's dependencies. Simply download the phar and include it in your project.
You can find a list of each release and the available downloads at https://github.com/guzzle/guzzle/releases.
This repository is for Guzzle 3.x. Guzzle 4.0, the new version of Guzzle has been released and is available at https://github.com/guzzle/guzzle.