Skip to content

Instantly share code, notes, and snippets.

@nacholibre
Last active April 18, 2017 12:03
Show Gist options
  • Save nacholibre/58072687059e4e386c8a to your computer and use it in GitHub Desktop.
Save nacholibre/58072687059e4e386c8a to your computer and use it in GitHub Desktop.
Use guzzle with the default Stream Handler, without Curl or any other libraries.
<?php
$handler = new \GuzzleHttp\Ring\Client\StreamHandler();
$client = new GuzzleHttp\Client(['handler' => $handler]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment