Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zingimmick/flysystem-oss
OSS filesystem adapter for Flysystem
https://github.com/zingimmick/flysystem-oss
filesystem flysystem oss
Last synced: about 2 months ago
JSON representation
OSS filesystem adapter for Flysystem
- Host: GitHub
- URL: https://github.com/zingimmick/flysystem-oss
- Owner: zingimmick
- License: mit
- Created: 2022-01-19T09:16:25.000Z (almost 3 years ago)
- Default Branch: 3.x
- Last Pushed: 2024-04-02T13:02:16.000Z (9 months ago)
- Last Synced: 2024-04-02T14:27:10.416Z (9 months ago)
- Topics: filesystem, flysystem, oss
- Language: PHP
- Homepage:
- Size: 196 KB
- Stars: 3
- 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
# Flysystem OSS
> **Requires**
> - **[PHP 8.0+](https://php.net/releases/)**
> - **[Flysystem 3.10+](https://github.com/thephpleague/flysystem/releases)**## Version Information
| Version | Flysystem | PHP Version | Status |
|:--------|:----------|:------------|:------------------------|
| 3.x | 3.10+ | >= 8.0 | Active support :rocket: |
| 2.x | 2.x - 3.x | >= 7.2 | Active support |
| 1.x | 1.x | >= 7.2 | Active support |Require Flysystem OSS using [Composer](https://getcomposer.org):
```bash
composer require zing/flysystem-oss
```## Usage
```php
use League\Flysystem\Filesystem;
use OSS\OssClient;
use Zing\Flysystem\Oss\OssAdapter;$prefix = '';
$config = [
'provider' => new StaticCredentialsProvider('aW52YWxpZC1rZXk=', 'aW52YWxpZC1zZWNyZXQ='),
'bucket' => 'test',
'endpoint' => 'oss-cn-shanghai.aliyuncs.com',
];$config['options'] = [
'url' => '',
'endpoint' => $config['endpoint'],
'bucket_endpoint' => '',
'temporary_url' => '',
];$client = new OssClient($config);
$adapter = new OssAdapter($client, $config['bucket'], $prefix, null, null, $config['options']);
$flysystem = new Filesystem($adapter);
```## Integration
- Laravel: [zing/laravel-flysystem-oss](https://github.com/zingimmick/laravel-flysystem-oss)
## Reference
[league/flysystem-aws-s3-v3](https://github.com/thephpleague/flysystem-aws-s3-v3)
## License
Flysystem OSS is an open-sourced software licensed under the [MIT license](LICENSE).