承接 zing/flysystem-tos 相关项目开发

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

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

zing/flysystem-tos

最新稳定版本:2.0.1

Composer 安装命令:

composer require zing/flysystem-tos

包简介

TOS filesystem adapter for Flysystem.

README 文档

README

tests Code Coverage Latest Stable Version Total Downloads Latest Unstable Version License

Requires

Version Information

Version Flysystem PHP Version Status
2.x 3.10+ >= 8.0 Active support 🚀
1.x 1.x >= 7.2 Active support

Require Flysystem TOS using Composer:

composer require zing/flysystem-tos

Usage

use League\Flysystem\Filesystem;
use Tos\TosClient;
use Zing\Flysystem\Tos\TosAdapter;

$prefix = '';
$config = [
    'ak' => 'aW52YWxpZC1rZXk=',
    'sk' => 'aW52YWxpZC1zZWNyZXQ=',
    'region' => 'cn-shanghai',
    'bucket' => 'test',
    'endpoint' => 'tos-cn-shanghai.volces.com',
];

$config['options'] = [
    'url' => '',
    'endpoint' => $config['endpoint'], 
    'bucket_endpoint' => '',
    'temporary_url' => '',
];

$client = new TosClient($config);
$adapter = new TosAdapter($client, $config['bucket'], $prefix, null, null, $config['options']);
$flysystem = new Filesystem($adapter);

Integration

Reference

league/flysystem-aws-s3-v3

License

Flysystem TOS is an open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-28