zing/laravel-flysystem-tos

2.0.0 2024-03-28 16:18 UTC

This package is auto-updated.

Last update: 2024-11-15 09:13:02 UTC


README

TOS storage filesystem for Laravel based on zing/flysystem-tos

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

Requires

Version Information

Require Laravel Flysystem TOS using Composer:

composer require zing/laravel-flysystem-tos

Configuration

return [
    // ...
    'disks' => [
        // ...
        'tos' => [
            'driver' => 'tos',
            'root' => '',
            'access_key_id' => env('TOS_ACCESS_KEY_ID'),
            'access_key_secret' => env('TOS_ACCESS_KEY_SECRET'),
            'bucket' => env('TOS_BUCKET'),
            'endpoint' => env('TOS_ENDPOINT'),
            'is_cname' => env('TOS_IS_CNAME', false),
            'security_token' => env('TOS_SECURITY_TOKEN'),
        ],
    ]
];

Environment

TOS_ACCESS_KEY_ID=
TOS_ACCESS_KEY_SECRET=
TOS_BUCKET=
TOS_ENDPOINT=
TOS_IS_CNAME=false
TOS_SECURITY_TOKEN=

License

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