PHPackages                             qktong/think-cloudfile - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. qktong/think-cloudfile

ActiveThink-extend[File &amp; Storage](/categories/file-storage)

qktong/think-cloudfile
======================

基于thinkphp6,上传文件至七牛云

v0.1.1(6y ago)114MITPHP

Since Jan 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/qktong/think-cloudfile)[ Packagist](https://packagist.org/packages/qktong/think-cloudfile)[ RSS](/packages/qktong-think-cloudfile/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

环境需求
----

[](#环境需求)

- PHP &gt;= 7.1
- thinkphp &gt;= 6.0

介绍
--

[](#介绍)

基于thinkphp6,上传文件至七牛云

安装
--

[](#安装)

```
composer require "qktong/cloudfile"
```

使用
--

[](#使用)

```
//上传文件
use qktong\cloudfile\FileService;
$fileService = new FileService();
$user_id    = '8';
$file_name  = 'test':
$extension  = 'jpg';
$mime       = 'image/jpeg';
$bucket     = 'test';
$streamData = file_get_contents('php://input');
$key        = $fileService->upload($user_id, $extension, $file_name, $mime, $streamData, $bucket);
```

```
//上传文件
use qktong\cloudfile\FileService;
$keys = 'test.jpg';
$fileService = new FileService();
$result      = $fileService->getFileUrl($keys,'');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2305d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad10f22f0bfde086d58a1ff286db1b170a9c41486600acf2f8a7eb3762ce1f0e?d=identicon)[qktong](/maintainers/qktong)

---

Top Contributors

[![qktong](https://avatars.githubusercontent.com/u/6166093?v=4)](https://github.com/qktong "qktong (4 commits)")

### Embed Badge

![Health badge](/badges/qktong-think-cloudfile/health.svg)

```
[![Health](https://phpackages.com/badges/qktong-think-cloudfile/health.svg)](https://phpackages.com/packages/qktong-think-cloudfile)
```

###  Alternatives

[zgldh/qiniu-laravel-storage

Qiniu Resource (Cloud) Storage SDK for Laravel 5/6/7/8/9

530394.0k13](/packages/zgldh-qiniu-laravel-storage)[overtrue/flysystem-qiniu

Flysystem adapter for the Qiniu storage.

231891.2k58](/packages/overtrue-flysystem-qiniu)[yangyifan/upload

上传 SDK for Laravel

12422.6k3](/packages/yangyifan-upload)[itbdw/laravel-storage-qiniu

A storage library for laravel5 and qiniu sdk

7015.2k](/packages/itbdw-laravel-storage-qiniu)[catlane/chunk-file-upload

文件上传小扩展，可支持大文件分块分片上传到七牛云or本地，优化您上传大文件的苦恼

284.9k](/packages/catlane-chunk-file-upload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
