indigophp / flysystem-http-downloader
Download any HTTP content to a file
Installs: 184
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 2
Open Issues: 3
pkg:composer/indigophp/flysystem-http-downloader
Requires
- php: >=5.4
- egeloen/http-adapter: ~0.7
- league/flysystem: ~1.0
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ~1.0
- phpspec/phpspec: ~2.1
This package is auto-updated.
Last update: 2021-11-24 09:10:14 UTC
README
Download any HTTP content to a file.
Install
Via Composer
$ composer require indigophp/flysystem-http-downloader
Usage
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');
Testing
$ phpspec run
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.