{"id":23899277,"url":"https://github.com/alphasnow/aliyun-oss-thinkphp","last_synced_at":"2025-04-10T18:12:18.398Z","repository":{"id":56946217,"uuid":"351443834","full_name":"alphasnow/aliyun-oss-thinkphp","owner":"alphasnow","description":"打造ThinkPHP最好的OSS Filesystem扩展","archived":false,"fork":false,"pushed_at":"2021-03-29T10:07:20.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T15:52:21.253Z","etag":null,"topics":["aliyun","aliyun-oss","filesystem","oss","thinkphp"],"latest_commit_sha":null,"homepage":"https://github.com/alphasnow/aliyun-oss-thinkphp","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}},"created_at":"2021-03-25T13:19:55.000Z","updated_at":"2021-04-06T02:56:29.000Z","dependencies_parsed_at":"2022-08-21T07:20:27.914Z","dependency_job_id":null,"html_url":"https://github.com/alphasnow/aliyun-oss-thinkphp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-thinkphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-thinkphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-thinkphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alphasnow%2Faliyun-oss-thinkphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alphasnow","download_url":"https://codeload.github.com/alphasnow/aliyun-oss-thinkphp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557192,"owners_count":20958037,"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","aliyun-oss","filesystem","oss","thinkphp"],"created_at":"2025-01-04T18:17:13.415Z","updated_at":"2025-04-10T18:12:18.372Z","avatar_url":"https://github.com/alphasnow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aliyun-oss-filesystem for ThinkPHP\n\n[![Latest Stable Version](https://poser.pugx.org/alphasnow/aliyun-oss-thinkphp/v/stable)](https://packagist.org/packages/alphasnow/aliyun-oss-thinkphp)\n[![License](https://poser.pugx.org/alphasnow/aliyun-oss-thinkphp/license)](https://packagist.org/packages/alphasnow/aliyun-oss-thinkphp)\n[![Build Status](https://travis-ci.com/alphasnow/aliyun-oss-thinkphp.svg?branch=master)](https://travis-ci.com/alphasnow/aliyun-oss-thinkphp)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-thinkphp/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-thinkphp/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-thinkphp/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/alphasnow/aliyun-oss-thinkphp/?branch=master)\n\n\n扩展借鉴了一些优秀的代码，综合各方，同时做了更多优化，将会添加更多完善的接口和插件，打造ThinkPHP最好的OSS Filesystem扩展\n\n## 运行环境\n- PHP 7.0+\n- cURL extension\n- ThinkPHP 6.0+\n\n## 安装方法\n1. 如果您通过composer管理您的项目依赖，可以在你的项目根目录运行：\n\n        $ composer require alphasnow/aliyun-oss-thinkphp\n\n   或者在你的`composer.json`中声明依赖：\n\n        \"require\": {\n            \"alphasnow/aliyun-oss-thinkphp\": \"~1.0\"\n        }\n\n2. 修改环境文件`.env`\n    ```\n    ALIYUN_OSS_ACCESS_ID=\n    ALIYUN_OSS_ACCESS_KEY=\n    ALIYUN_OSS_BUCKET=\n    ALIYUN_OSS_ENDPOINT=oss-cn-shanghai.aliyuncs.com\n    ALIYUN_OSS_IS_CNAME=false\n    ALIYUN_OSS_CDN_DOMAIN=\n    ALIYUN_OSS_IS_SSL=false\n    ```\n\n## 快速使用\n\n#### 文件上传\n```php\nuse think\\facade\\Filesystem;\n$file = request()-\u003efile('image');\n$savename = Filesystem::disk('aliyun')-\u003eputFile( 'image', $file);\n```\n\n\u003e https://www.kancloud.cn/manual/thinkphp6_0/1037639\n\n#### 文件写入\n```php\nuse think\\facade\\Filesystem;\n$filesystem = Filesystem::disk('aliyun');\n\n$filesystem-\u003ewrite('prefix/path/file.txt',file_get_contents('/local/path/file.txt'));\n```\n\n\u003e [阿里云OSS文档](https://help.aliyun.com/document_detail/32099.html?spm=5176.doc31981.6.335.eqQ9dM)\n\n## License\nSee [LICENSE](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphasnow%2Faliyun-oss-thinkphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphasnow%2Faliyun-oss-thinkphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphasnow%2Faliyun-oss-thinkphp/lists"}