2017 © Pedro PelĂĄez
 

silex-bundle guzzle-bundle

Provide Silex web profiler for Guzzle

image

campru/guzzle-bundle

Provide Silex web profiler for Guzzle

  • Monday, June 15, 2015
  • by campru5
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,863 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Guzzle Bundle Build Status Latest Stable Version

Provide an advanced profiler for Guzzle. This profiler is for debug purposes and will display a dedicated report available in the toolbar and Silex Web Profiler, (*1)

Guzzle Symfony web profiler panel Guzzle Symfony web profiler panel - request details Guzzle Symfony web profiler panel - response details, (*2)

Installation

Add the composer requirements, (*3)

{
    "require": {
        "campru/guzzle-bundle": "1.0.0"
    },
}

Enable it in your application, (*4)

use Campru\GuzzleBundle\Provider\GuzzleProfilerServiceProvider;

$app->register(new GuzzleProfilerServiceProvider());

The provider depends on WebProfilerServiceProvider, so you also need to enable this if that's not already the case, (*5)

use Silex\Provider\WebProfilerServiceProvider;

$app->register(new Provider\WebProfilerServiceProvider())

Finally, it's needed to add two subscribers to Guzzle client when this is created, (*6)

use GuzzleHttp\Client;

$client = new Client(['base_url' => 'http://my.api.com']);

$client->getEmitter()->attach($app['guzzle_bundle.subscriber.profiler']);
$client->getEmitter()->attach($app['guzzle_bundle.subscriber.storage']);

Licence

This bundle is under the MIT license. See the complete license in the bundle, (*7)

The Versions

15/06 2015

dev-master

9999999-dev https://github.com/campru/guzzle-bundle

Provide Silex web profiler for Guzzle

  Sources   Download

MIT

The Requires

 

The Development Requires

by David CamprubĂ­

silex guzzle profiler

15/06 2015

v1.0.1

1.0.1.0 https://github.com/campru/guzzle-bundle

Provide Silex web profiler for Guzzle

  Sources   Download

MIT

The Requires

 

The Development Requires

by David CamprubĂ­

silex guzzle profiler

03/05 2015

v1.0.0

1.0.0.0 https://github.com/campru/guzzle-bundle

Provide Silex web profiler for Guzzle

  Sources   Download

MIT

The Requires

 

The Development Requires

by David CamprubĂ­

silex guzzle profiler