{"id":23899292,"url":"https://github.com/alphasnow/aliyun-oss-flysystem","last_synced_at":"2025-07-31T16:11:58.603Z","repository":{"id":38096016,"uuid":"375202733","full_name":"alphasnow/aliyun-oss-flysystem","owner":"alphasnow","description":"💾 Flysystem adapter for the Aliyun storage.","archived":false,"fork":false,"pushed_at":"2025-06-16T10:14:45.000Z","size":140,"stargazers_count":14,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"3.x","last_synced_at":"2025-06-16T11:24:37.619Z","etag":null,"topics":["aliyun","flysystem","oss","php","sdk"],"latest_commit_sha":null,"homepage":"https://alphasnow.github.io/aliyun-oss-flysystem/","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/alphasnow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-09T02:31:01.000Z","updated_at":"2025-06-16T10:05:12.000Z","dependencies_parsed_at":"2024-05-08T07:29:22.371Z","dependency_job_id":"9898578c-dc02-426d-b088-f306a40fef77","html_url":"https://github.com/alphasnow/aliyun-oss-flysystem","commit_stats":{"total_commits":99,"total_committers":6,"mean_commits":16.5,"dds":0.07070707070707072,"last_synced_commit":"1c9a3b8872447b388489cbe0dc2c4bc96bfe116f"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/alphasnow/aliyun-oss-flysystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-flysystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-flysystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-flysystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-flysystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alphasnow","download_url":"https://codeload.github.com/alphasnow/aliyun-oss-flysystem/tar.gz/refs/heads/3.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-flysystem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266888217,"owners_count":24001128,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","flysystem","oss","php","sdk"],"created_at":"2025-01-04T18:17:14.259Z","updated_at":"2025-07-31T16:11:58.539Z","avatar_url":"https://github.com/alphasnow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aliyun OSS Flysystem\n\n💾 Flysystem Adapter for [Aliyun Object Storage Service](https://www.alibabacloud.com/help/en/object-storage-service).\n\n[![Latest Stable Version](https://poser.pugx.org/alphasnow/aliyun-oss-flysystem/v/stable)](https://packagist.org/packages/alphasnow/aliyun-oss-flysystem)\n[![Total Downloads](https://poser.pugx.org/alphasnow/aliyun-oss-flysystem/downloads)](https://packagist.org/packages/alphasnow/aliyun-oss-flysystem)\n[![License](https://poser.pugx.org/alphasnow/aliyun-oss-flysystem/license)](https://packagist.org/packages/alphasnow/aliyun-oss-flysystem)\n[![tests](https://github.com/alphasnow/aliyun-oss-flysystem/actions/workflows/tests.yml/badge.svg?branch=3.x)](https://github.com/alphasnow/aliyun-oss-flysystem/actions/workflows/tests.yml)\n[![Coverage Status](https://coveralls.io/repos/github/alphasnow/aliyun-oss-flysystem/badge.svg?branch=3)](https://coveralls.io/github/alphasnow/aliyun-oss-flysystem?branch=3)\n\n## Compatibility\n\n| **flysystem**  |  **aliyun-oss-flysystem** | **readme**\n|---|---|---|\n| ^3.0 | ^3.0  | [readme](https://github.com/alphasnow/aliyun-oss-flysystem/blob/3.x/README.md) |\n| ^2.0 | ^2.0  | [readme](https://github.com/alphasnow/aliyun-oss-flysystem/blob/2.x/README.md) |\n| ^1.0 | ^1.0  | [readme](https://github.com/alphasnow/aliyun-oss-flysystem/blob/1.x/README.md) |\n| ~1.0.0  | ^0.3  | [readme](https://github.com/alphasnow/aliyun-oss-flysystem/blob/0.x/README.md) |\n\n## Installation\n\n```bash\ncomposer require \"alphasnow/aliyun-oss-flysystem\"\n```\n\n## Usage\n\n### Initialize\n```php\nuse OSS\\OssClient;\nuse AlphaSnow\\Flysystem\\Aliyun\\AliyunFactory;\n\n$config = [\n    \"access_key_id\" =\u003e \"**************\",             // Required, YourAccessKeyId\n    \"access_key_secret\" =\u003e \"********************\",   // Required, YourAccessKeySecret\n    \"endpoint\" =\u003e \"oss-cn-shanghai.aliyuncs.com\",    // Required, Endpoint\n    \"bucket\" =\u003e \"bucket-name\",                       // Required, Bucket\n];\n\n$flysystem = (new AliyunFactory())-\u003ecreateFilesystem($config);\n\n$flysystem-\u003ewrite(\"file.md\", \"contents\");\n$flysystem-\u003ewriteStream(\"foo.md\", fopen(\"file.md\", \"r\"));\n\n$fileExists = $flysystem-\u003efileExists(\"foo.md\");\n$flysystem-\u003ecopy(\"foo.md\", \"baz.md\");\n$flysystem-\u003emove(\"baz.md\", \"bar.md\");\n$flysystem-\u003edelete(\"bar.md\");\n$has = $flysystem-\u003ehas(\"bar.md\");\n\n$read = $flysystem-\u003eread(\"file.md\");\n$readStream = $flysystem-\u003ereadStream(\"file.md\");\n\n$flysystem-\u003ecreateDirectory(\"foo/\");\n$directoryExists = $flysystem-\u003edirectoryExists(\"foo/\");\n$flysystem-\u003edeleteDirectory(\"foo/\");\n\n$listContents = $flysystem-\u003elistContents(\"/\", true);\n$listPaths = [];\nforeach ($listContents as $listContent) {\n    $listPaths[] = $listContent-\u003epath();\n}\n\n$lastModified = $flysystem-\u003elastModified(\"file.md\");\n$fileSize = $flysystem-\u003efileSize(\"file.md\");\n$mimeType = $flysystem-\u003emimeType(\"file.md\");\n\n$flysystem-\u003esetVisibility(\"file.md\", \"private\");\n$visibility = $flysystem-\u003evisibility(\"file.md\");\n```\n\n### Options\n```php\n$flysystem-\u003ewrite(\"file.md\", \"contents\", [\n    \"options\" =\u003e [\"checkmd5\" =\u003e false]\n]);\n$flysystem-\u003ewrite(\"bar.md\", \"contents\", [\n    \"headers\" =\u003e [\"Content-Disposition\" =\u003e \"attachment;filename=bar.md\"]\n]);\n$flysystem-\u003ewrite(\"baz.md\", \"contents\", [\n    \"visibility\" =\u003e \"private\"\n]);\n```\n\n## Reference\n[https://github.com/thephpleague/flysystem](https://github.com/thephpleague/flysystem)   \n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphasnow%2Faliyun-oss-flysystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphasnow%2Faliyun-oss-flysystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphasnow%2Faliyun-oss-flysystem/lists"}