Download the PHP package e-moe/guzzle6-bundle without Composer
On this page you can find all versions of the php package e-moe/guzzle6-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download e-moe/guzzle6-bundle
More information about e-moe/guzzle6-bundle
Files in e-moe/guzzle6-bundle
Package guzzle6-bundle
Short Description Integrates Guzzle 6 into your Symfony application
License MIT
Homepage https://github.com/e-moe/guzzle6-bundle
Informations about the package guzzle6-bundle
Symfony Guzzle6Bundle
This bundle integrates Guzzle 6.x into Symfony. Guzzle is a PHP framework for building RESTful web service clients.
Requirements
- PHP 5.6 or above
- Symfony 2.7 or above (including Symfony 3.x, 4.x, 5.x)
Installation
To install this bundle, run the command below and you will get the latest version by Packagist.
To use the newest (maybe unstable) version please add following into your composer.json:
Usage
Load bundle in AppKernel.php (should be done automatically if you are using Symfony Flex):
Configuration in config.yml (optional):
see more about log format syntax.
Using Guzzle in controllers:
Using Guzzle in your own services:
or you can just use autowire feature with GuzzleHttp\ClientInterface
type hint.
Features
Symfony Debug Profiler
Symfony Debug Timeline
Symfony Debug Toolbar
Symfony Debug Logs (Monolog Integration)
Suggestions
Adding aliases: If you want to use different names for provided services you can use aliases. This is a good idea if you don't want have any dependency to guzzle in your service name.
Creating multiple clients: If you want to have different Guzzle clients in your application all you need is to define them in services file and add "guzzle.client" tag to turn on Symfony integration (Debug toolbar, logs, so on..).
Authors
- Nikolay Labinskiy aka e-moe
Inspired by Chris Wilkinson's and Florian Preusner's GuzzleBundles (1, 2).
See also the list of contributors who participated in this project.
License
This bundle is released under the MIT license
All versions of guzzle6-bundle with dependencies
symfony/framework-bundle Version ^5.0
guzzlehttp/guzzle Version ^6.0
symfony/stopwatch Version ^5.0