環境 PHP5.6 Guzzle6.3 公式ドキュメント: http://docs.guzzlephp.org/en/stable/index.html guzzle インストール composerでインストールします。 require_once(dirname(__FILE__) . '/vendor/autoload.php'); use GuzzleHttp\Client; $client = new Client(); //$client = new \GuzzleHttp\Client(['cookies' => true]); //クッキーを利用したい場合 //$client = new \GuzzleHttp\Client(['debug' => true]); //通信内容をデバッグしたい場合 $promises[] = $client->requestAsync('GET
![Guzzleでの非同期リクエスト - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/3ff8eef6bbfcd2dab18c1bf8bdd673aa821017eb/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9R3V6emxlJUUzJTgxJUE3JUUzJTgxJUFFJUU5JTlEJTlFJUU1JTkwJThDJUU2JTlDJTlGJUUzJTgzJUFBJUUzJTgyJUFGJUUzJTgyJUE4JUUzJTgyJUI5JUUzJTgzJTg4JnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWNsaXA9ZWxsaXBzaXMmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz01Y2Q4NjZlZWJjN2EyZjEyNmIyMTY4MjY2YTIwYTBhZg%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwYnowJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz0xNjgwZDljZWE4YjM4ZDUwMzg3NWY3ZmE0N2E1NjNiZQ%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3D4fb4cc9236c900b1a7f5fe36fa47f702)