PHPackages                             sya/yii2-gallery - 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. sya/yii2-gallery

ActiveYii2-extension[File &amp; Storage](/categories/file-storage)

sya/yii2-gallery
================

Module manager gallery, upload gallery

1.0(9y ago)0821MITPHPPHP &gt;=5.4.0

Since May 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sya0710/yii2-gallery)[ Packagist](https://packagist.org/packages/sya/yii2-gallery)[ RSS](/packages/sya-yii2-gallery/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

yii2-gallery
============

[](#yii2-gallery)

Module manager gallery, upload image

Installation
------------

[](#installation)

Add

```
"sya/yii2-gallery": "~1.0"
```

to the require section of your composer.json file.

Module
======

[](#module)

```
use sya\gallery\Module;
'modules' => [
    'gallery' => [
        'class' => 'sya\gallery\Module',
        'syaDirPath' => '@webroot/',
        'syaDirUrl' => '@web/',
        'syaDirUpload' => 'uploads',
    ],
]
```

Demo
----

[](#demo)

Gallery
=======

[](#gallery)

```
use sya\gallery\models\Gallery;
$form->field($model, 'gallery'])->widget(Gallery::className(), [
  'columns' => [
      'status' => [
          'title' => 'Status',
          'displayType' => Gallery::SYA_TYPE_COLUMN_DROPDOWN,
          'items' => [
              '0' => 'Ẩn',
              '1' => 'Hiện'
          ]
      ],
  ]
]),
```

Single Image
============

[](#single-image)

```
use sya\gallery\Image;
$form->field($model, 'image', ['horizontalCssClasses' => []])->widget(Image::className(), [
  'class_button' => 'form-control button_color ',
])
```

License
-------

[](#license)

**yii2-gallery** is released under the MIT License. See the bundled LICENSE.md for details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

3288d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b91c5c73679d5c0f16e9e5e3c4c2cc12617f19b46118a3214331e0cce306fcb?d=identicon)[sya0710](/maintainers/sya0710)

---

Top Contributors

[![phongnv093](https://avatars.githubusercontent.com/u/6872425?v=4)](https://github.com/phongnv093 "phongnv093 (22 commits)")[![sya0710](https://avatars.githubusercontent.com/u/11871538?v=4)](https://github.com/sya0710 "sya0710 (4 commits)")

---

Tags

yii2extensiongallery

### Embed Badge

![Health badge](/badges/sya-yii2-gallery/health.svg)

```
[![Health](https://phpackages.com/badges/sya-yii2-gallery/health.svg)](https://phpackages.com/packages/sya-yii2-gallery)
```

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15430.4k2](/packages/fedemotta-yii2-aws-sdk)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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