PHPackages                             ffchen/webuploader - 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. ffchen/webuploader

ActiveLibrary

ffchen/webuploader
==================

desc

1.0.1(9y ago)233[1 issues](https://github.com/ffchen1227/yii2webuploaders/issues)MITPHP

Since Jun 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ffchen1227/yii2webuploaders)[ Packagist](https://packagist.org/packages/ffchen/webuploader)[ RSS](/packages/ffchen-webuploader/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

yii2webuploaders
================

[](#yii2webuploaders)

yii2 webuploader 上传widget 可拖动图片排序

安装
--

[](#安装)

```
$ php composer.phar require ffchen/webuploader "*"

//更新

```

使用

---

控制器

---

```
public function actions()

   {
        return [
          'uploads'=>[
                'class' => 'ffchen\webuploader\UploadAction',
                'config' => [
                    'imagePathFormat' => Yii::getAlias('@web')."/image/{yyyy}{mm}{dd}/{time}{rand:6}",
                ]
            ]
        ];
    }
```

```

```

---

如果是多图情况在保存入库下把字段序列化后保存例如

```
            //Create
            $imaes = explode(',',Yii::$app->request->post()['Imag']['srcs']);
            for($index=0;$indexsrcs = serialize($imaes);

            //Update
            $imaes = explode(',',Yii::$app->request->post()['Imag']['srcs']);
            for($index=0;$indexsrcs = serialize($imaes);

```

---

一张效果图

[![image](https://raw.githubusercontent.com/ffchen1227/yii2webuploader/master/20170608110057.jpg)](https://raw.githubusercontent.com/ffchen1227/yii2webuploader/master/20170608110057.jpg)

---

不足之处请见谅

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

2

Last Release

3308d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14154684?v=4)[ffchen1227](/maintainers/ffchen1227)[@ffchen1227](https://github.com/ffchen1227)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ffchen-webuploader/health.svg)

```
[![Health](https://phpackages.com/badges/ffchen-webuploader/health.svg)](https://phpackages.com/packages/ffchen-webuploader)
```

PHPackages © 2026

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