indigophp / flysystem-http-downloader
此包已被弃用且不再维护。未建议替代包。
将任何HTTP内容下载到文件
dev-master / 0.1.x-dev
2015-07-02 23:41 UTC
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
将任何HTTP内容下载到文件。
安装
通过Composer
$ composer require indigophp/flysystem-http-downloader
使用
简单的下载器使用方法
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
贡献
请参阅 CONTRIBUTING 获取详细信息。
致谢
许可证
MIT许可证(MIT)。请参阅 许可证文件 获取更多信息。