定制 twistor/flysystem-http 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

twistor/flysystem-http

最新稳定版本:0.2.0

Composer 安装命令:

composer require twistor/flysystem-http

包简介

An HTTP adapter for Flysystem that uses basic PHP functions.

README 文档

README

Author Build Status Coverage Status Quality Score Software License Packagist Version

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
  • 点击次数: 4
  • 依赖项目数: 4
  • 推荐数: 1

GitHub 信息

  • Stars: 21
  • Watchers: 0
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04