zing/laravel-flysystem-oss

Flysystem Adapter for OSS

2.7.0 2024-03-18 14:27 UTC

README

OSS storage filesystem for Laravel based on zing/flysystem-oss

Build Status Code Coverage Latest Stable Version Total Downloads Latest Unstable Version License

Requires

Version Information

Require Laravel Flysystem OSS using Composer:

composer require zing/laravel-flysystem-oss

Configuration

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'),
        ],
    ]
];

Environment

OSS_ACCESS_KEY_ID=
OSS_ACCESS_KEY_SECRET=
OSS_BUCKET=
OSS_ENDPOINT=
OSS_IS_CNAME=false
OSS_SECURITY_TOKEN=

License

Laravel Flysystem OSS is an open-sourced software licensed under the MIT license.