https://github.com/zingimmick/laravel-flysystem-tos
TOS storage filesystem for Laravel
https://github.com/zingimmick/laravel-flysystem-tos
flysystem laravel tos
Last synced: 10 months ago
JSON representation
TOS storage filesystem for Laravel
- Host: GitHub
- URL: https://github.com/zingimmick/laravel-flysystem-tos
- Owner: zingimmick
- License: mit
- Created: 2024-03-25T06:42:36.000Z (over 2 years ago)
- Default Branch: 2.x
- Last Pushed: 2025-02-09T06:28:30.000Z (over 1 year ago)
- Last Synced: 2025-02-09T07:24:47.312Z (over 1 year ago)
- Topics: flysystem, laravel, tos
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- 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 TOS
TOS storage filesystem for Laravel based on [zing/flysystem-tos](https://github.com/zingimmick/flysystem-tos)
[](https://github.com/zingimmick/laravel-flysystem-tos/actions)
[](https://codecov.io/gh/zingimmick/laravel-flysystem-tos)
[](https://packagist.org/packages/zing/laravel-flysystem-tos)
[](https://packagist.org/packages/zing/laravel-flysystem-tos)
[](https://packagist.org/packages/zing/laravel-flysystem-tos)
[](https://packagist.org/packages/zing/laravel-flysystem-tos)
> **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 TOS using [Composer](https://getcomposer.org):
```bash
composer require zing/laravel-flysystem-tos
```
## Configuration
```php
return [
// ...
'disks' => [
// ...
'tos' => [
'driver' => 'tos',
'root' => '',
'key' => env('TOS_ACCESS_KEY_ID'),
'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
```dotenv
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](LICENSE).