csa/guzzle-bundle

A bundle integrating GuzzleHttp >= 4.0

Installs: 20 766

Dependents: 0

Stars: 43

Watchers: 5

Forks: 15

Open Issues: 4

Language: PHP

v1.3.1 2015-08-25 16:17 UTC

README

Gitter

Latest Stable Version Latest Unstable Version License Build Status SensioLabsInsight

Description

This bundle integrates Guzzle >=4.0 in Symfony. Currently, it supports the following features:

  • Integration with Symfony's debug tools (web debug toolbar, profiler, logger, timeline, ...)
  • Configuring a Guzzle client simply using configuration
  • Service descriptions to describe your services is json format (only in the 1.3 branch, though)

Web debug Toolbar Profiler panel integration Profiler timeline integration

Installation

Stable version

Add the required package using composer.

composer require csa/guzzle-bundle:@stable

Bleeding-edge version

Add the required package using composer.

composer require csa/guzzle-bundle:@dev

Enabling the bundle

Add the bundle to your AppKernel.

<?php
// in %kernel.root_dir%/AppKernel.php
$bundles[] = 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: true

Upgrade

Although I try to guarantee forward-compatibility of the bundle with previous versions. Here are the upgrade notes between each version.

See Upgrade.md.

Documentation

Documentation for stable (1.3)

Documentation for unstable (2.0@dev/dev-master)

Contributing

CsaGuzzleBundle is an open source project. If you'd like to contribute, please read the Contributing Guidelines.

License

This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Built with Grunt