{"id":17093989,"url":"https://github.com/apollopy/flysystem-aliyun-oss","last_synced_at":"2025-04-09T13:09:59.037Z","repository":{"id":56949479,"uuid":"49867797","full_name":"apollopy/flysystem-aliyun-oss","owner":"apollopy","description":"This is a Flysystem adapter for the Aliyun OSS","archived":false,"fork":false,"pushed_at":"2020-01-19T08:45:09.000Z","size":23,"stargazers_count":90,"open_issues_count":2,"forks_count":22,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T12:04:32.406Z","etag":null,"topics":["aliyun-oss","flysystem-adapter","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apollopy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-18T09:56:05.000Z","updated_at":"2023-07-07T15:50:21.000Z","dependencies_parsed_at":"2022-08-21T07:50:21.464Z","dependency_job_id":null,"html_url":"https://github.com/apollopy/flysystem-aliyun-oss","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollopy%2Fflysystem-aliyun-oss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollopy%2Fflysystem-aliyun-oss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollopy%2Fflysystem-aliyun-oss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apollopy%2Fflysystem-aliyun-oss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apollopy","download_url":"https://codeload.github.com/apollopy/flysystem-aliyun-oss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045245,"owners_count":21038554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliyun-oss","flysystem-adapter","laravel","php"],"created_at":"2024-10-14T14:09:54.974Z","updated_at":"2025-04-09T13:09:59.013Z","avatar_url":"https://github.com/apollopy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flysystem Adapter for Aliyun OSS.\n\nThis is a Flysystem adapter for the Aliyun OSS ~2.3\n\ninspire by [aobozhang/aliyun-oss-adapter](https://github.com/aobozhang/aliyun-oss-adapter)\n\n## Installation\n\n```bash\ncomposer require apollopy/flysystem-aliyun-oss\n```\n\n## for Laravel\n\nThis service provider must be registered.\n\n```php\n// config/app.php\n\n'providers' =\u003e [\n    '...',\n    ApolloPY\\Flysystem\\AliyunOss\\AliyunOssServiceProvider::class,\n];\n```\n\nedit the config file: config/filesystems.php\n\nadd config\n\n```php\n'oss' =\u003e [\n    'driver'     =\u003e 'oss',\n    'access_id'  =\u003e env('OSS_ACCESS_ID','your id'),\n    'access_key' =\u003e env('OSS_ACCESS_KEY','your key'),\n    'bucket'     =\u003e env('OSS_BUCKET','your bucket'),\n    'endpoint'   =\u003e env('OSS_ENDPOINT','your endpoint'),\n    'prefix'     =\u003e env('OSS_PREFIX', ''), // optional\n],\n```\n\nchange default to oss\n\n```php\n    'default' =\u003e 'oss'\n```\n\n## Use\n\nsee [Laravel wiki](https://laravel.com/docs/5.1/filesystem)\n\n## Plugins\n\ninspire by [itbdw/laravel-storage-qiniu](https://github.com/itbdw/laravel-storage-qiniu)\n\n```php\nStorage::disk('oss')-\u003eputFile($md5_path, '/local_file_path/1.png', ['mimetype' =\u003e 'image/png','filename' =\u003e 'filename_by_down.png']);\n\nStorage::disk('oss')-\u003esignedDownloadUrl($path, 3600, 'oss-cn-beijing.aliyuncs.com', true);\n```\n\n## IDE Helper\n\nif installed [barryvdh/laravel-ide-helper](https://github.com/barryvdh/laravel-ide-helper)\n\nedit the config file: config/ide-helper.php\n\n```php\n'interfaces'      =\u003e [\n    '\\Illuminate\\Contracts\\Filesystem\\Filesystem' =\u003e ApolloPY\\Flysystem\\AliyunOss\\FilesystemAdapter::class,\n],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapollopy%2Fflysystem-aliyun-oss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapollopy%2Fflysystem-aliyun-oss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapollopy%2Fflysystem-aliyun-oss/lists"}