定制 webalternatif/flysystem-composite 二次开发

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

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

webalternatif/flysystem-composite

最新稳定版本:v0.3.0

Composer 安装命令:

composer require webalternatif/flysystem-composite

包简介

A simple interface for composite Flysystem adapters

README 文档

README

Source code Software license GitHub issues Test status Psalm coverage Psalm level

A simple interface for composite Flysystem adapters.

Installation

$ composer require webalternatif/flysystem-composite

Usage

use Webf\Flysystem\Composite\CompositeFilesystemAdapter;

/**
 * @template T of FilesystemAdapter
 * @template-implements CompositeFilesystemAdapter<T>
 */
class MyWrapperAdapter implements CompositeFilesystemAdapter
{
    /**
     * @param T $innerAdapter
     */
    public function __construct(private FilesystemAdapter $innerAdapter)
    {
    }

    public function getInnerAdapters() : iterable
    {
        return [$this->innerAdapter];
    }
    
    // ... (implementation of FilesystemAdapter's methods)
}

Tests

To run all tests, execute the command:

$ composer test

This will run Psalm and a PHP-CS-Fixer check, but you can run them individually like this:

$ composer psalm
$ composer cs-check

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-09