axdlee / upyun-laravel-storage
Upyun Resource (Cloud) Storage SDK for Laravel 5
1.0.3
2017-03-15 07:41 UTC
Requires
- upyun/sdk: 3.0.0-RC5
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', ], ],
- 完成
使用
- 参考 包内 UpyunAdapter.php 及 https://github.com/upyun/php-sdk