curl asynchrone pool
<?php use GuzzleHttp\Client; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Promise; $client = new Client(); $promises = [ 'baidu' => $client->getAsync('http://www.baidu.com'), 'google' => $client->getAsync('http://www.google.com'), ]; $results = Promise\unwrap($promises); $results['baidu']->getBody(); $results['google']->getBody();