PHPackages                             zacksleo/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zacksleo/yii2-gallery

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

zacksleo/yii2-gallery
=====================

Yii2 gallery module

1.1.1(6y ago)24.8kproprietaryJavaScript

Since Feb 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zacksleo/yii2-gallery)[ Packagist](https://packagist.org/packages/zacksleo/yii2-gallery)[ RSS](/packages/zacksleo-yii2-gallery/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

Yii2 gallery
============

[](#yii2-gallery)

[![Latest Stable Version](https://camo.githubusercontent.com/1787d9f65a0d55a25b6521b8bf30bd4c1823d8975fe13cdb7a1f4eabd0dba0b0/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d67616c6c6572792f76657273696f6e)](https://packagist.org/packages/zacksleo/yii2-gallery)[![Total Downloads](https://camo.githubusercontent.com/f1bb109a350996a93e9e6bef60e3695ee1f900578bdd32cfb5f0b15578872e5c/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d67616c6c6572792f646f776e6c6f616473)](https://packagist.org/packages/zacksleo/yii2-gallery)[![License](https://camo.githubusercontent.com/2b07168ad13ca7e1c3e7341de6201b57db0620cd06515012216cd769df16a4a2/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d67616c6c6572792f6c6963656e7365)](https://packagist.org/packages/zacksleo/yii2-gallery)

original [yii2-gallery-module](https://github.com/sadovojav/yii2-gallery-module)

#### Features:

[](#features)

- Upload image
- Drag image and change position
- Make gallery template
- Use inline widget

[![gallery](https://cloud.githubusercontent.com/assets/9282021/10119704/7a006796-64a5-11e5-8b3c-51046cb05f7b.jpg)](https://cloud.githubusercontent.com/assets/9282021/10119704/7a006796-64a5-11e5-8b3c-51046cb05f7b.jpg)

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

[](#installation)

### Composer

[](#composer)

The preferred way to install this extension is through [Composer](http://getcomposer.org/).

Either run `php composer.phar require sadovojav/yii2-gallery-module "dev-master"`

or add `"sadovojav/yii2-gallery-module": "dev-master"` to the require section of your `composer.json`

### Migration

[](#migration)

yii migrate --migrationPath=@vendor/sadovojav/yii2-gallery-module/migrations

Config
------

[](#config)

1. Attach the module in your config file:

```
'modules' => [
    'gallery' => [
        'class' => 'sadovojav\gallery\Module',
    ],
],
```

- string `basePath` = `@webroot/galleries` - Base path
- integer `queryCacheDuration` = `86400` - Query cache duration
- bool `uniqueName` = `false` - Generate unique name

2. If you want use custom template, you can set path map

```
'view' => [
	'theme' => [
		'pathMap' => [
			'@sadovojav/gallery/widgets/views' => '@app/web/views/gallery'
		],
		'baseUrl'   => '@web/web'
	],
],
```

Administration
--------------

[](#administration)

Galleries manager - **/gallery/gallery/index**

Using
-----

[](#using)

#### 1. Widget

[](#1-widget)

```

```

- integer `galleryId` required - Gallery Id
- bool `caption` = `false` - Show caption in default template
- string `template` = `null` - Your custom widget template

#### 2. Inline Widget

[](#2-inline-widget)

See here -&gt;

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

2554d ago

Major Versions

v0.1.0 → 1.0.02017-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e97b8a6f67b09513e345a128d73a63898ae1ec9f6a6c77234c78b3f16d305d1?d=identicon)[zacksleo](/maintainers/zacksleo)

---

Top Contributors

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

---

Tags

yii2yii2-extensionyii2-galleryyii2modulegallery

### Embed Badge

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

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

###  Alternatives

[akiraz2/yii2-ticket-support

Yii2 Support Ticket Module, easy, flexible, fast

601.7k](/packages/akiraz2-yii2-ticket-support)

PHPackages © 2026

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