Skip to content

Instantly share code, notes, and snippets.

@inpay
inpay / Guzzle.php
Last active Aug 29, 2015
Asynchronous API calls using Guzzle
View Guzzle.php
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
use GuzzleHttp\Pool;
use GuzzleHttp\Event\ErrorEvent;
use GuzzleHttp\Event\CompleteEvent;
$client = new Client();