PHP code example of playbloom / guzzle-bundle
1. Go to this page and download the library: Download playbloom/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/ */
playbloom / guzzle-bundle example snippets
// in %your_project%/app/AppKernel.php
$bundles[] = new Playbloom\Bundle\GuzzleBundle\PlaybloomGuzzleBundle();
$client = new \Guzzle\Http\Client('https://my.api.com');
// basic logger service plugged & configured with the default Symfony app logger
$loggerPlugin = $container->get('playbloom_guzzle.client.plugin.logger');
$client->addSubscriber($loggerPlugin);
// advanced profiler for developement and debug,