定制 noccylabs/virtfs 二次开发

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

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

noccylabs/virtfs

Composer 安装命令:

composer require noccylabs/virtfs

包简介

Virtual filesystems (like physfs) - with autoloading!

README 文档

README

VirtFs is to PHP what PhysFs is to C. It allows you to create a virtual filesystem root, to then attach directories and archives to it, optionally mounted in their own virtual path in the vfs. In addition to this, VirtFs also registers a StreamWrapper to give you access to the VFS via a stream prefix, such as "userdata://..".

$vfs = new VirtFs("dirs");
$vfs->add(new DirectoryMounter("./dir_a", "a"));
$vfs->add(new DirectoryMounter("./dir_b", "b"));

What we have now is:

      /      The filesystem root
      |--a   The contents of ./dir_a
      '--b   The contents of ./dir_b

In the above example, these would be valid:

dirs://a/hello.txt      -  ./dir_a/hello.txt
dirs://b/foo            -  ./dir_b/foo

Plugin behavior

To load plugins from individual .zip-archives, or directly from one or more plugin directories, see examples/autoloading/. These examples also demonstrates the autoloader

Autoloader

To be able to autoload classes from a VirtFs filesystem, use the VirtFsLoader class:

use NoccyLabs\VirtFs\VirtFsLoader;

$loader = new VirtFsLoader($virtfs);
$loader->register

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2014-10-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固