hughcube/laravel-alioss

v1.2.13 2024-09-02 08:18 UTC

README

Test Actions status Lint Actions status StyleCI

Installing

$ composer require hughcube/laravel-alioss -vvv

Add a new disk to your config/filesystems.php config:

return [
    'disks' => [
        'alioss' => [
            'driver'          => 'alioss',
            'bucket'          => env('ALIOSS_BUCKET'),
            'uploadBaseUrl'   => env('ALIOSS_UPLOAD_BASE_URL'),
            'cdnBaseUrl'      => env('ALIOSS_CDN_BASE_URL'),
            'prefix'          => env('ALIOSS_PREFIX'),
            'acl'             => env('ALIOSS_ACL'),
            
            'accessKeyId'     => env('ALIOSS_ACCESS_KEY_ID'),
            'accessKeySecret' => env('ALIOSS_ACCESS_KEY_SECRET'),
            'endpoint'        => env('ALIOSS_ENDPOINT'),
            'isCName'         => env('ALIOSS_IS_CNAME'),
            'securityToken'   => env('ALIOSS_SECURITY_TOKEN'),
            'requestProxy'    => env('ALIOSS_REQUEST_PROXY'),
        ],
    ]
];

Usage

TODO

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT