love-oss/guzzle-5-bundle

A bundle integrating GuzzleHttp 5 for Symfony 3 and compatible with PHP 7.1+

Installs: 159

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.1.1 2019-05-24 14:20 UTC

This package is auto-updated.

Last update: 2019-07-24 14:38:25 UTC


README

Description

This bundle integrates Guzzle 5 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

Forked from CsaGuzzleBundle, it brings to the 1.3.x version the support of PHP 7.1+.

Web debug Toolbar Profiler panel integration Profiler timeline integration

Installation

Add the required package using composer.

composer require love-oss/guzzle-5-bundle:@stable

Add the bundle to your AppKernel.

// in %kernel.root_dir%/AppKernel.php
$bundles = [
    // ...
    new LoveOSS\Guzzle5Bundle\Guzzle5Bundle(),
    // ...
];

To enable the data collector (only in the dev environment, you may simply configure the CsaGuzzleBundle as follows:

love_oss_guzzle:
    profiler: %kernel.debug%

You may also enable the included logger, in order log outcoming requests:

love_oss_guzzle:
    logger: true

Documentation

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