PHP code example of zing / laravel-flysystem-oss
1. Go to this page and download the library: Download zing/laravel-flysystem-oss 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/ */
zing / laravel-flysystem-oss example snippets
return [
// ...
'disks' => [
// ...
'oss' => [
'driver' => 'oss',
'root' => '',
'access_key_id' => env('OSS_ACCESS_KEY_ID'),
'access_key_secret' => env('OSS_ACCESS_KEY_SECRET'),
'bucket' => env('OSS_BUCKET'),
'endpoint' => env('OSS_ENDPOINT'),
'is_cname' => env('OSS_IS_CNAME', false),
'security_token' => env('OSS_SECURITY_TOKEN'),
],
]
];