PHPackages                             okcoder/think-filesystem - 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. okcoder/think-filesystem

ActiveLibrary

okcoder/think-filesystem
========================

thinkphp 文件管理

1.0.2(3y ago)021PHPPHP &gt;=7.1.0

Since Jun 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Mrokor/think-filesystem)[ Packagist](https://packagist.org/packages/okcoder/think-filesystem)[ RSS](/packages/okcoder-think-filesystem/feed)WikiDiscussions master Synced 1w ago

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

think-filesystem
================

[](#think-filesystem)

### 安装composer包

[](#安装composer包)

`composer require okcoder\think-filesystem`

### 创建表

[](#创建表)

`php think filesystem:table`

### 配置应用 app/event.php

[](#配置应用-appeventphp)

```
return [
    'listen'    =>  [
        'AppInit'   =>  [
            \okcoder\think\filesystem\AppInitEvent::class
        ]
    ]
];
```

### 配置文件 config/filesystem.php

[](#配置文件-configfilesystemphp)

```
return [
    'disks' =>  [
        'qiniu'  => [
            'type'          => 'qiniu',
            'accessKey'     => env('FILESYSTEM.QINIU.ACCESS_KEY', ''),
            'secretKey'     => env('FILESYSTEM.QINIU.SECRET_KEY', ''),
            'bucket'        => env("FILESYSTEM.QINIU.BUCKET", ''),
            'url'           => env('FILESYSTEM.QINIU.URL', ''),//不要斜杠结尾，此处为URL地址域名。
            'videoWater'    => \Qiniu\base64_urlSafeEncode("kodo://" . env("FILESYSTEM.QINIU.BUCKET", '') . '/system/water.png') . '/wmGravity/SouthEast/wmScale/0.2/wmOffsetX/-20/wmOffsetY/-20',  // 视频水印
            'imageZip'      => 'imageView2/2/w/1440/format/jpg/interlace/1/q/40/ignore-error/1|imageslim', // 图片瘦身
            'pipelines'     => [    //  转码队列
                'videoWater'        =>  null,   // 生成视频预览加水印
                'videoPreviewWater' =>  null,   // 生成视频预览压缩加水印
                'h265ToH264'        =>  null,   // 265视频转码264
                'imageZip'          =>  null,   // 图片瘦身
            ]
        ],
    ],
     // 路由前缀
    'route_prefix' => 'okcoder/filesystem',
    // 是否开启265视频转码成264视频
    '265To264'     => true
];
```

> 开启转码需要配置app.app\_host网站域名 转码队列

```
    php think listen:queue --queue FileTranscodingJob

```

### 路由

[](#路由)

#### 七牛云

[](#七牛云)

##### 获取上传凭证

[](#获取上传凭证)

> GET /okcoder/filesystem/qiniu/get\_config?type=&amp;effect=

##### \[配置\]上传回调(可忽略)

[](#配置上传回调可忽略)

> POST /okcoder/filesystem/qiniu/post\_callback

##### \[配置\]转码回调(可忽略)

[](#配置转码回调可忽略)

> POST /okcoder/filesystem/qiniu/post\_transcoding\_url

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~13 days

Total

3

Last Release

1398d ago

PHP version history (2 changes)1.0.0PHP &gt;=8

1.0.1PHP &gt;=7.1.0

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/okcoder-think-filesystem/health.svg)

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

###  Alternatives

[zoujingli/think-library

Library for ThinkAdmin

8569.8k18](/packages/zoujingli-think-library)[jaguarjack/catchadmin

The CatchAdmin Background management

8962.6k](/packages/jaguarjack-catchadmin)[casbin/think-authz

An authorization library that supports access control models like ACL, RBAC, ABAC for ThinkPHP.

27918.5k6](/packages/casbin-think-authz)[rockys/e-admin

ThinkPhP E-admin

462.4k](/packages/rockys-e-admin)[thans/thinkphp-filesystem-cloud

thinkphp6.0 filesystem,include Aliyun and Qiniu

2237.8k3](/packages/thans-thinkphp-filesystem-cloud)[yunwuxin/think-notification

The Notification Library For ThinkPHP6

422.2k4](/packages/yunwuxin-think-notification)

PHPackages © 2026

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