axdlee / upyun-laravel-storage by axdlee

Upyun Resource (Cloud) Storage SDK for Laravel 5
88
3
2
Package Data
Maintainer Username: axdlee
Maintainer Contact: xdlee110@gmail.com (Sheldon Lee)
Package Create Date: 2017-03-15
Package Last Update: 2017-03-15
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:13:02
Package Statistics
Total Downloads: 88
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Upyun 云储存 Laravel 5 Storage版

基于 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',
        ],
    ],

  • 完成

使用

  • 参考 包内 UpyunAdapter.php 及 https://github.com/upyun/php-sdk

官方SDK / 手册

  • https://github.com/upyun/php-sdk
  • http://docs.upyun.com/api/