guzzle http request dosnload file code example Example: guzzle download file $client->request('GET', '/stream/20', ['sink' => '/path/to/file']);