ydalbj / laravel-bos
Laravel file system service provider for Baidu BOS storage
v0.3
2020-07-28 08:31 UTC
Requires
- laravel/framework: ^5.7
- ydalbj/flysystem-bos: ^0.1.0
Requires (Dev)
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2024-04-28 17:43:22 UTC
README
- PHP >= 7.1
Install
$ composer require ydalbj/laravel-bos
Configuration
Add bos configuration
- Edit
config\filesystems.php
'disks' => [ ... 'bos' => [ 'driver' => 'bos', 'bucket' => env('BOS_BUCKET'), 'options' => [ 'credentials' => [ 'ak' => env('BOS_KEY'), 'sk' => env('BOS_SECRET'), ], 'endpoint' => env('BOS_ENDPOINT', 'http://bj.bcebos.com'), ] ] ]
Define environment variables
- Edit
.env
BOS_BUCKET=your bucket BOS_KEY=your bos access key id BOS_SECRET=your bos secret key id BOS_ENDPOINT=your bos endpoint