Add the required package using composer.
composer require csa/guzzle-bundle:^2.0composer require csa/guzzle-bundle:^1.3composer require csa/guzzle-bundle:@devAdd the bundle to your AppKernel.
// in %kernel.root_dir%/AppKernel.php
$bundles = array(
// ...
new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle(),
// ...
);To enable the data collector (only in the dev environment, you may simply
configure the CsaGuzzleBundle as follows:
csa_guzzle:
profiler: '%kernel.debug%'You may also enable the included logger, in order log outcoming requests:
csa_guzzle:
logger: trueNext section: Creating clients