PHP code example of ydalbj / laravel-bos
1. Go to this page and download the library: Download ydalbj/laravel-bos library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ydalbj / laravel-bos example snippets
'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'),
]
]
]
BOS_BUCKET=your bucket
BOS_KEY=your bos access key id
BOS_SECRET=your bos secret key id
BOS_ENDPOINT=your bos endpoint