twistor/flysystem-http
最新稳定版本:0.2.0
Composer 安装命令:
composer require twistor/flysystem-http
包简介
An HTTP adapter for Flysystem that uses basic PHP functions.
关键字:
README 文档
README
This adapter uses basic PHP functions to access HTTP resources. It is read only.
Installation
composer require twistor/flysystem-http
Usage
use League\Flysystem\Filesystem; use Twistor\Flysystem\Http\HttpAdapter; $filesystem = new Filesystem(new HttpAdapter('http://example.com')); $contents = $filesystem->read('file.txt');
By default, metadata will be retrieved via HEAD requests. This can be disabled.
use Twistor\Flysystem\Http\HttpAdapter; $supportsHead = false; $adapter = new HttpAdapter('http://example.com', $supportsHead);
PHP context options can be set using the third parameter.
use Twistor\Flysystem\Http\HttpAdapter; $context = [ 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, ], ]; $adapter = new HttpAdapter('http://example.com', true, $context);
统计信息
- 总下载量: 251.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 2
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04