PHPackages                             grozzzny/catalog - 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. grozzzny/catalog

ActiveYii2-extension

grozzzny/catalog
================

Catalog module for Yii2

v3.0(5y ago)0477MITPHPPHP &gt;=5.3.0

Since Feb 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/grozzzny/catalog)[ Packagist](https://packagist.org/packages/grozzzny/catalog)[ RSS](/packages/grozzzny-catalog/feed)WikiDiscussions v3 Synced 2d ago

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

Catalog module for Yii2
=======================

[](#catalog-module-for-yii2)

This module allows to [yii2](https://www.yiiframework.com/)

Installation guide
------------------

[](#installation-guide)

```
$ php composer.phar require grozzzny/catalog "v3.x-dev"
```

Run migrations

```
php yii migrate --migrationPath=@vendor/grozzzny/catalog/migrations
```

Or add following lines to your console configuration file:

```
'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationPath' => [
            '@grozzzny/catalog/migrations',
        ],
    ],
],
```

```
'modules' => [
    'catalog' => [
        'class' => 'grozzzny\catalog\CatalogModule',
    ],
],
'i18n' => [
    'translations' => [
        'catalog' => [
            'class' => 'yii\i18n\PhpMessageSource',
            'sourceLanguage' => 'en-US',
            'basePath' => '@grozzzny/catalog/messages',
        ],
    ],
],
'container' => [
    'singletons' => [
        'grozzzny\catalog\models\Category' => ['class' => 'app\models\Category'],
    ],
],
```

Schema
------

[](#schema)

[![alt text](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_08-59-16.png)](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_08-59-16.png)

Catalog with different types of data
------------------------------------

[](#catalog-with-different-types-of-data)

[![alt text](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-08-04.png)](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-08-04.png)

Any level of nesting
--------------------

[](#any-level-of-nesting)

[![alt text](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-11-42.png)](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-11-42.png)

Speed filter
------------

[](#speed-filter)

[![alt text](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-48-14.png)](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-48-14.png)[![alt text](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-50-45.png)](https://raw.githubusercontent.com/grozzzny/catalog/master/media/2017-07-17_09-50-45.png)

Several languages
-----------------

[](#several-languages)

```
