Download the PHP package gremo/buzz-bundle without Composer
On this page you can find all versions of the php package gremo/buzz-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gremo/buzz-bundle
More information about gremo/buzz-bundle
Files in gremo/buzz-bundle
Package buzz-bundle
Short Description Symfony Bundle for using the lightweight Buzz HTTP client.
License MIT
Informations about the package buzz-bundle
GremoBuzzBundle
Symfony Bundle for using the lightweight Buzz HTTP client.
Installation
Add the bundle in your composer.json
file:
Then run composer update
and register the bundle with your kernel in app/appKernel.php
:
Legacy Symfony (2.0.*)
Add the following to your deps
file:
Then run php bin/vendors update
and register the namespaces with the autoloader (app/autoload.php
):
Finally register the bundle with your kernel in app/appKernel.php
:
Configuration
Configuration is not needed. Available options and types (for the default values see Buzz\Client\AbstractClient
):
Usage
Get the gremo_buzz
service from the service container:
Refer to Kris Wallsmith Buzz library for sending HTTP requests.
Dependency Injection Tags
You can register a listener creating a service that implements Buzz\Listener\ListenerInterface
and tagging it as gremo_buzz.listener
(optionally defining a priority
attribute). Higher priority means that the corresponding listener is executed first.
Example listener that logs outgoing requests:
Note that this example uses the new Psr\Log\LoggerInterface
and may not work for old versions of Symfony.
All versions of buzz-bundle with dependencies
symfony/dependency-injection Version ~2.0|~3.0
symfony/http-kernel Version ~2.0|~3.0
symfony/config Version ~2.0|~3.0
kriswallsmith/buzz Version >= 0.6,<1.0