定制 meisam-mulla/flysystem-stretchfs 二次开发

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

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

meisam-mulla/flysystem-stretchfs

最新稳定版本:v1.4.1

Composer 安装命令:

composer require meisam-mulla/flysystem-stretchfs

包简介

A Flysystem adapter for StretchFS.

README 文档

README

This package provides a League\Flysystem adapter for StretchFS. It allows you to use the Flysystem API to interact with your StretchFS storage system, leveraging the features and ease of use of Flysystem for file operations within StretchFS.

Installation

You can install the package via composer:

composer require meisam-mulla/flysystem-stretchfs

Configuration

After installation, you can configure the adapter in your Laravel application or in any PHP project that uses Flysystem. Here's how you can do it:

Laravel

In your config/filesystems.php, add a new disk:

'disks' => [
    // Other disks...
    
    'stretchfs' => [
        'driver' => 'stretchfs',
        'domain' => 'your_sfsserver.net',
        'token' => 'your_token',
    ],
],

Plain PHP

If you're using Flysystem in a non-Laravel PHP project, you can directly instantiate the StretchFsAdapter:

use League\Flysystem\Filesystem;
use MeisamMulla\SfsClient\StretchFS;
use MeisamMulla\FlysystemStretchfs\StretchFsAdapter;

$client = new StretchFS([
    'domain' => 'sfsserver.net',
    'token' => 'your_token',
]);

$adapter = new StretchFsAdapter($client);
$filesystem = new Filesystem($adapter);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-04-06