axdlee/upyun-laravel-storage

Upyun Resource (Cloud) Storage SDK for Laravel 5

1.0.3 2017-03-15 07:41 UTC

This package is not auto-updated.

Last update: 2024-11-24 03:40:17 UTC


README

基于 https://github.com/upyun/php-sdk 开发

符合Laravel 5 的Storage用法。

更新

v1.0 支持laravel5.4 的upyun存储适配器。

安装

  • composer require axdlee/upyun-laravel-storage
  • config/app.php 里面的 providers 数组, 加上一行 Axdlee\UpyunStorage\UpyunStorageServiceProvider::class,
  • config/filesystem.php 里面的 disks数组加上:
    'disks' => [
        ... ,
        'upyun' => [
            'driver'        => 'upyun', 
            'bucket'        => 'your bucket name',
            'operator_name' => 'your operator name',
            'operator_password'  => 'your operator password',
        ],
    ],
  • 完成

使用

官方SDK / 手册