pbweb / buzz-bundle
PB Web Media Buzz bundle for Symfony
Installs: 5 013
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1
- kriswallsmith/buzz: ~0.16 <0.17
- symfony/config: ^3.4|^4.0
- symfony/dependency-injection: ^3.4|^4.0
- symfony/http-kernel: ^3.4|^4.0
- symfony/stopwatch: ^3.4|^4.0
- symfony/yaml: ^3.4|^4.0
Requires (Dev)
- mockery/mockery: ^1.2
- pbweb/pbweb-coding-standard: ^1.1.1
- phpunit/phpunit: ^7.5
Replaces
README
This bundle has been abandoned!
Please use the excellent symfony/http-client instead
Provides a Symfony bundle for the Buzz HTTP client library created by Kris Wallsmith.
This bundle also adds an entry to the Symfony debug toolbar which shows the number of requests and the total request time. In the profile you can see more details about these requests like headers and response data.
Installation
Install with composer
Install the buzz-bundle using composer:
composer require pbweb/buzz-bundle
then, add the bundle to your AppKernel
:
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Pbweb\BuzzBundle\PbwebBuzzBundle(),
Usage
$browser = $this->container->get('buzz'); $response = $browser->get('http://pbwebmedia.nl');
Configuration
You can optionally configure buzz in your app/config.yml
file
pbweb_buzz: client_timeout: 60 # Defaults to 5 debug: %kernel.debug% # Enables the data collector in the dev environment
Copyright
Buzz
Copyright ©2010-2011 Kris Wallsmith
Buzz bundle
Copyright ©2014-2016 PB Web Media