Skip to content

Instantly share code, notes, and snippets.

View inpay's full-sized avatar

InPay inpay

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