Download the PHP package caciobanu/guzzle-bundle without Composer
On this page you can find all versions of the php package caciobanu/guzzle-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download caciobanu/guzzle-bundle
More information about caciobanu/guzzle-bundle
Files in caciobanu/guzzle-bundle
Download caciobanu/guzzle-bundle
More information about caciobanu/guzzle-bundle
Files in caciobanu/guzzle-bundle
Vendor caciobanu
Package guzzle-bundle
Short Description Integration bundle for guzzle with Symfony.
License MIT
Homepage https://github.com/caciobanu/guzzle-bundle
Package guzzle-bundle
Short Description Integration bundle for guzzle with Symfony.
License MIT
Homepage https://github.com/caciobanu/guzzle-bundle
Please rate this library. Is it a good library?
Informations about the package guzzle-bundle
Guzzle Symfony Bundle
This is a Symfony bundle that integrates Guzzle for easier use.
Installation
You can use Composer to install the extension to your project:
Then create a minimal config file caciobanu_guzzle.yml
in config/packages/
:
A complete configuration looks like:
Usage
Using services in controller:
Adding Guzzle middleware
Adding a Guzzle middleware is a two step process:
-
Create a new class:
- Create a Symfony service like so:
There are three middleware interfaces that can be implemented:
- Caciobanu\Symfony\GuzzleBundle\Middleware\BeforeRequestMiddlewareInterface - marks middleware to be called before sending the request
- Caciobanu\Symfony\GuzzleBundle\Middleware\AfterResponseMiddlewareInterface - marks middleware to be called after the response is received
- Caciobanu\Symfony\GuzzleBundle\Middleware\OnErrorMiddlewareInterface - marks middleware to be called when an errors occurs
- Caciobanu\Symfony\GuzzleBundle\Middleware\RetryMiddlewareInterface - offers the possibility to retry requests
Credits
This library is developed by Catalin Ciobanu.
License
All versions of guzzle-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
guzzlehttp/guzzle Version ^6.0
symfony/framework-bundle Version ^4.0
psr/log Version ^1.0
guzzlehttp/guzzle Version ^6.0
symfony/framework-bundle Version ^4.0
psr/log Version ^1.0
The package caciobanu/guzzle-bundle contains the following files
Loading the files please wait ....