承接 codementality/flysystem-stream-wrapper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

codementality/flysystem-stream-wrapper

最新稳定版本:v1.1.1

Composer 安装命令:

composer require codementality/flysystem-stream-wrapper

包简介

Adapts Flysystem filesystems to PHP stream wrappers. (fork of twistor/flysystem-stream-wrapper_

README 文档

README

This package is a forked and updated version of the original package, twistor/flysystem-stream-wrapper. It has been updated to run on PHP 8.2+, and unit tests have been uppdated for PHPUnit 11+.

Status Software License Packagist Version

Installation

composer require codementality/flysystem-stream-wrapper

Usage

use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Codementality\FlysystemStreamWrapper;

// Get a Filesystem object.
$filesystem = new Filesystem(new Local('/some/path'));

FlysystemStreamWrapper::register('fly', $filesystem);

// Then you can use it like so.
file_put_contents('fly://filename.txt', $content);

mkdir('fly://happy_thoughts');

FlysystemStreamWrapper::unregister('fly');

Notes

This project tries to emulate the behavior of the standard PHP functions, rename(), mkdir(), unlink(), etc., as closely as possible. This includes emitting warnings. If any differences are discovered, please file an issue.

统计信息

  • 总下载量: 82.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-15