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
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^5.0
- guzzlehttp/log-subscriber: ^1.0
- symfony/dependency-injection: ^3.4
- symfony/expression-language: ^3.4
- symfony/framework-bundle: ^3.4
- symfony/http-kernel: ^3.4
- twig/twig: ^2.6.2
Requires (Dev)
- doctrine/cache: ^1.1
- guzzlehttp/guzzle-services: >=0.3|<0.6
- phpunit/phpunit: ^5.7
- symfony/web-profiler-bundle: ^3.4
- symfony/yaml: ^3.4
Suggests
- doctrine/cache: Allows caching of responses
- guzzlehttp/guzzle-services: Allow web service description
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+.
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
- Creating clients
- Registering new event subscribers
- Available event subscribers
- Configuration reference
- Streaming a guzzle response
- Service descriptions
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.