hughcube / laravel-alioss
Installs: 3 159
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- aliyuncs/oss-sdk-php: *
- hughcube/guzzle-http: *
- hughcube/purl: *
- illuminate/filesystem: *
- league/flysystem: *
Requires (Dev)
README
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:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- 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