Download any HTTP content to a file.
Via Composer
$ composer require indigophp/flysystem-http-downloader
Simple downloader usage:
use Indigo\Flysystem\Downloader;
use League\Flysystem\Filesystem;
use Ivory\HttpAdapter\HttpAdapterInterface;
use Psr\Http\Message\RequestInterface;
$downloader = new Downloader(new Filesystem, /* HttpAdapterInterface */);
$request = /* RequestInterface */;
$downloader->download($request, 'path/to/file');
$ phpspec run
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.