PHP code example of rebangm / silex-guzzlehttp-provider
1. Go to this page and download the library: Download rebangm/silex-guzzlehttp-provider 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/ */
rebangm / silex-guzzlehttp-provider example snippets
$app->register(new SilexGuzzle\GuzzleServiceProvider(),array(
'guzzle.base_uri' => "http://httpbin.com/",
'guzzle.timeout' => 3.14,
'guzzle.request_options' =>
['auth' => ['admin', 'admin']]
));