定制 fisharebest/flysystem-chroot-adapter 二次开发

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

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

fisharebest/flysystem-chroot-adapter

最新稳定版本:3.0.0

Composer 安装命令:

composer require fisharebest/flysystem-chroot-adapter

包简介

Creates a filesystem from a sub-folder in another filesystem.

README 文档

README

Author Latest Stable Version Build Status Coverage Status Scrutinizer Code Quality StyleCI Software License

This adapter creates a new filesystem from a sub-folder of an existing filesystem.

IMPORTANT: Since flysystem 3.3, this functionality is now available from flysystem directly. You should migrate to that package.

In composer.json, replace fisharebest/flysystem-chroot-adapter with league/flysystem-path-prefixing.

In your code, replace Fisharebest\Flysystem\Adapter\ChrootAdapter with League\Flysystem\PathPrefixing.

Installation

composer require fisharebest/flysystem-chroot-adapter

Usage

use League\Flysystem\Filesystem; use League\Flysystem\Adapter\Local; use Fisharebest\Flysystem\Adapter\ChrootAdapter // Write a file to a filesystem. $filesystem = new Filesystem(new Local(__DIR__)); $filesystem->write('foo/bar/fab/file.txt', 'hello world!'); // Create a chroot filesystem from the foo/bar folder. $chroot = new Filesystem(new ChrootAdapter($filesystem, 'foo/bar')); // And read it back from the chroot. $chroot->read('fab/file.txt'); // 'hello world!'

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固