PHP code example of campru / guzzle-bundle
1. Go to this page and download the library: Download campru/guzzle-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
campru / guzzle-bundle example snippets
use Campru\GuzzleBundle\Provider\GuzzleProfilerServiceProvider;
$app->register(new GuzzleProfilerServiceProvider());
use Silex\Provider\WebProfilerServiceProvider;
$app->register(new Provider\WebProfilerServiceProvider())
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']);