PHPackages                             korinovsky/yii2-app-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. [Framework](/categories/framework)
4. /
5. korinovsky/yii2-app-gallery

ActiveProject[Framework](/categories/framework)

korinovsky/yii2-app-gallery
===========================

Yii 2 Gallery Template

0.1(10y ago)03BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/korinovsky/yii2-app-gallery)[ Packagist](https://packagist.org/packages/korinovsky/yii2-app-gallery)[ Docs](https://github.com/korinovsky/yii-app-gallery)[ RSS](/packages/korinovsky-yii2-app-gallery/feed)WikiDiscussions master Synced 2mo ago

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

Yii 2 Gallery Template
======================

[](#yii-2-gallery-template)

Yii 2 Gallery Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for rapidly creating small gallery projects.

The template contains the gallery features including user login/logout and a contact page. It includes all commonly used configurations that would allow you to focus on adding new features to your application.

[![Latest Stable Version](https://camo.githubusercontent.com/0dfdbbfb12732f7bdc0fa23810e1d1f34fa191689ff5fa0c3afb90a2a952a98e/68747470733a2f2f706f7365722e707567782e6f72672f6b6f72696e6f76736b792f796969322d6170702d67616c6c6572792f762f737461626c652e706e67)](https://packagist.org/packages/korinovsky/yii2-app-gallery)[![Total Downloads](https://camo.githubusercontent.com/a6b89a39ae9352918771ca13ec795993247606c7531682557a7966ee9b8bf56a/68747470733a2f2f706f7365722e707567782e6f72672f6b6f72696e6f76736b792f796969322d6170702d67616c6c6572792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/korinovsky/yii2-app-gallery)[![Build Status](https://camo.githubusercontent.com/d7718cd8c47fe15cb190802d34dff764a913f2157446294ba74ebb45b8e5db72/68747470733a2f2f7472617669732d63692e6f72672f6b6f72696e6f76736b792f796969322d6170702d67616c6c6572792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/korinovsky/yii2-app-gallery)

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
  assets/             contains assets definition
  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  mail/               contains view files for e-mails
  models/             contains model classes
  runtime/            contains files generated during runtime
  tests/              contains various tests for the gallery application
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

```

REQUIREMENTS
------------

[](#requirements)

The minimum requirement by this project template that your Web server supports PHP 5.4.0.

INSTALLATION
------------

[](#installation)

### Install from an Archive File

[](#install-from-an-archive-file)

Extract the archive file downloaded from [github.com](https://github.com/korinovsky/yii-app-gallery/archive/master.zip) to a directory named `gallery` that is directly under the Web root.

Set cookie validation key in `config/web.php` file to some random secret string:

```
'request' => [
    // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
    'cookieValidationKey' => '',
],
```

You can then access the application through the following URL:

```
http://localhost/gallery/web/

```

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install this project template using the following command:

```
php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar create-project --prefer-dist --stability=dev korinovsky/yii2-app-gallery gallery

```

Now you should be able to access the application through the following URL, assuming `gallery` is the directory directly under the Web root.

```
http://localhost/gallery/web/

```

CONFIGURATION
-------------

[](#configuration)

### Database

[](#database)

Edit the file `config/db.php` with real data, for example:

```
return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2gallery',
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',
];
```

**NOTES:**

- Yii won't create the database for you, this has to be done manually before you can access it.
- Check and edit the other files in the `config/` directory to customize your application as required.
- Refer to the README in the `tests` directory for information specific to gallery application tests.

\\zxbodya\\yii2-gallery-manager\\GalleryBehavior:238

```
// orientation fix
if (($data = function_exists('exif_read_data') ? @exif_read_data($path) : null) && isset($data['Orientation']) && ($ort = $data['Orientation'])) {
    switch($ort)
    {
        case 1: { // nothing
            break;
        }
        case 2: { // horizontal flip
            $originalImage->flipHorizontally();
            break;
        }
        case 3: { // 180 rotate right
            $originalImage->rotate(180);
            break;
        }
        case 4: { // vertical flip
            $originalImage->flipVertically();
            break;
        }
        case 5: { // vertical flip + 90 rotate right
            $originalImage->flipVertically()->rotate(90);
            break;
        }
        case 6: { // 90 rotate right
            $originalImage->rotate(90);
            break;
        }
        case 7: { // horizontal flip + 90 rotate right
            $originalImage->flipHorizontally()->rotate(90);
            break;
        }
        case 8: { // 90 rotate left
            $originalImage->rotate(-90);
            break;
        }
    }
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3684d ago

### Community

Maintainers

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

---

Top Contributors

[![korinovsky](https://avatars.githubusercontent.com/u/6168004?v=4)](https://github.com/korinovsky "korinovsky (6 commits)")

---

Tags

frameworkyii2project templategallery

### Embed Badge

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

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

PHPackages © 2026

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