承接 gumphp/think-storage 相关项目开发

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

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

gumphp/think-storage

最新稳定版本:v1.0.3

Composer 安装命令:

composer require gumphp/think-storage

包简介

The ThinkPHP6.1 Filesystem Package

README 文档

README

composer require gumphp/think-storage

配置

# config/filesystem.php

return [
    'disks' => [
        's3' => [
            'type' => 'aws',
            'root' => '/',
            'credentials' => [
                'key' => env('S3_KEY', ''),
                'secret' => env('S3_SECRET', ''),
            ],
            'version' => env('S3_VERSION', 'latest'),
            'region' => env('S3_REGION', 'us-west-2'),
            'bucket' => env('S3_BUCKET', ''),
        ],
    ],
];

使用

use GumPHP\Storage\Facade\Storage;

Storage::disk('s3')->put('/s3/remote/file.ext', file_get_contents('/path/yourfile.ext'));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2023-04-22