PHPackages                             zantknight/yii2-gallery4 - 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. zantknight/yii2-gallery4

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

zantknight/yii2-gallery4
========================

Gallery manager for bootstrap4

v1.1.1(2y ago)3444[1 issues](https://github.com/zantdev/yii2-gallery4/issues)1MITPHP

Since Mar 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zantdev/yii2-gallery4)[ Packagist](https://packagist.org/packages/zantknight/yii2-gallery4)[ RSS](/packages/zantknight-yii2-gallery4/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (1)

A bootstrap4 gallery manager
============================

[](#a-bootstrap4-gallery-manager)

Gallery manager for bootstrap4

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist zantknight/yii2-gallery4 "*"

```

or add

```
"zantknight/yii2-gallery4": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

1. Migrate to create gallery table by calling this command ```
    php yii migrate --migrationPath=@vendor/zantknight/yii2-gallery4/migrations

    ```
2. Update config/web.php ```
    return [
        ...
        'modules' => [
            'gallery4' => [
                 'class' => 'zantknight\yii\gallery\Module',
             ],
        ]
    ]
    ```
3. Add this behavior to your model ```
     ...
     use zantknight\yii\gallery\Gallery4Behavior;

     class YourModel extends \yii\db\ActiveRecord
     {
         ...

         public function behaviors()
         {
             return [
                 ...
                 [
                     'class' => Gallery4Behavior::className(),
                     'model' => $this
                 ]
             ];
         }
     }
    ```
4. Put this onto your view ```

    ```

    **Description**
    - ownerModel Model class where is used by view
    - multiple Multiple upload status
5. Put this chunk in params.php ```
     return [
         ...
         'bsVersion' => '4.x',
     ];
    ```
6. Create folder "media" in your "web" folder
7. You will get something like this [![alt text](https://camo.githubusercontent.com/987ed6db0a3f87823736c411451c8c2eac8347e1a4464accfb58676d8b8194bb/68747470733a2f2f692e706f7374696d672e63632f726d4c4b535348392f312e706e67)](https://camo.githubusercontent.com/987ed6db0a3f87823736c411451c8c2eac8347e1a4464accfb58676d8b8194bb/68747470733a2f2f692e706f7374696d672e63632f726d4c4b535348392f312e706e67)[![alt text](https://camo.githubusercontent.com/b0c8c164df8a4e018091f70fffa5c27914376d4ee043a6a5dc3c1923dad471d0/68747470733a2f2f692e706f7374696d672e63632f4733446e575748392f322e706e67)](https://camo.githubusercontent.com/b0c8c164df8a4e018091f70fffa5c27914376d4ee043a6a5dc3c1923dad471d0/68747470733a2f2f692e706f7374696d672e63632f4733446e575748392f322e706e67)[![alt text](https://camo.githubusercontent.com/97c6d6c651a47fe5400547469f86dfc55d84a9d6ddabe7112a97fe0c97466a15/68747470733a2f2f692e706f7374696d672e63632f70585962544b51482f332e706e67)](https://camo.githubusercontent.com/97c6d6c651a47fe5400547469f86dfc55d84a9d6ddabe7112a97fe0c97466a15/68747470733a2f2f692e706f7374696d672e63632f70585962544b51482f332e706e67)[![alt text](https://camo.githubusercontent.com/f8b7b47b0e0f9c63f9f9206e7cd31c6f6f1aa7ecfa06f77beab13842c9ad32b2/68747470733a2f2f692e706f7374696d672e63632f39514a3650564e672f342e706e67)](https://camo.githubusercontent.com/f8b7b47b0e0f9c63f9f9206e7cd31c6f6f1aa7ecfa06f77beab13842c9ad32b2/68747470733a2f2f692e706f7374696d672e63632f39514a3650564e672f342e706e67)
8. For image administration, go to Module Gallery4 Url (/gallery4/admin) and you will get something like this [![alt text](https://camo.githubusercontent.com/7ac47ceffb06b9917284b6cc4cc9d89f233f069df6c83c6346bc7d5d938fb649/68747470733a2f2f692e706f7374696d672e63632f59716479345250512f352e706e67)](https://camo.githubusercontent.com/7ac47ceffb06b9917284b6cc4cc9d89f233f069df6c83c6346bc7d5d938fb649/68747470733a2f2f692e706f7374696d672e63632f59716479345250512f352e706e67)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance24

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Recently: every ~199 days

Total

11

Last Release

888d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fe9b685afb63ad6de74d25fca1f40c4c4b40ce0113d1e61b15b42508db26d85?d=identicon)[zantdev](/maintainers/zantdev)

---

Top Contributors

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

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/zantknight-yii2-gallery4/health.svg)

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

###  Alternatives

[hail812/yii2-adminlte-widgets

yii2 adminlte widgets

10246.8k4](/packages/hail812-yii2-adminlte-widgets)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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