https://github.com/zingimmick/laravel-flysystem-oss
OSS storage filesystem for Laravel
https://github.com/zingimmick/laravel-flysystem-oss
flysystem laravel oss
Last synced: over 1 year ago
JSON representation
OSS storage filesystem for Laravel
- Host: GitHub
- URL: https://github.com/zingimmick/laravel-flysystem-oss
- Owner: zingimmick
- License: mit
- Created: 2022-01-19T15:45:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T23:24:34.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T21:55:52.039Z (almost 2 years ago)
- Topics: flysystem, laravel, oss
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Laravel Flysystem OSS
OSS storage filesystem for Laravel based on [zing/flysystem-oss](https://github.com/zingimmick/flysystem-oss)
[](https://github.com/zingimmick/laravel-flysystem-oss/actions)
[](https://codecov.io/gh/zingimmick/laravel-flysystem-oss)
[](https://packagist.org/packages/zing/laravel-flysystem-oss)
[](https://packagist.org/packages/zing/laravel-flysystem-oss)
[](https://packagist.org/packages/zing/laravel-flysystem-oss)
[](https://packagist.org/packages/zing/laravel-flysystem-oss)
> **Requires**
> - **[PHP 8.0+](https://php.net/releases/)**
> - **[Laravel 9.0+](https://laravel.com/docs/releases)**
## Version Information
| Version | Illuminate | PHP Version | Status |
|:--------|:-----------|:------------|:------------------------|
| 2.x | 9.x | >= 8.0 | Active support :rocket: |
| 1.x | 6.x - 8.x | >= 7.2 | Active support |
Require Laravel Flysystem OSS using [Composer](https://getcomposer.org):
```bash
composer require zing/laravel-flysystem-oss
```
## Configuration
```php
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
```dotenv
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](LICENSE).