PHPackages                             fgh151/yii2-review - 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. fgh151/yii2-review

ActiveYii2-extension

fgh151/yii2-review
==================

review for yii2 model

v1.0.0(3y ago)1127BSD-3-ClausePHPPHP &gt;=5.5CI failing

Since Feb 1Pushed 3y ago1 watchersCompare

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

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

Yii2-review
===========

[](#yii2-review)

Module fo adding riview for yii2 model

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

[](#installation)

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

Either run

```
php composer require fgh151/yii2-review "*"

```

or add

```
"fgh151/yii2-review": "*",

```

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

Migrate up

```
php yii migrate --migrationPath=vendor/fgh151/yii2-review/migrations

```

Once the extension is installed, simply add it in your config by : Basic `config/web.php`

Advanced `[backend|frontend|common]/config/main.php`

```
    'modules' => [
        'review' => [
            'class' => 'fgh151\review\Module',
        ],
        //...
    ]
```

RBAC
----

[](#rbac)

You can use RBAC with module. Simply add it in your config:

```
>
        'modules'    => [
             'review' => [
                 'class' => 'fgh151\review\Module',
                 'as access' => [
                     'class' => 'yii\filters\AccessControl',
                     'rules' => [
                         [
                             'allow' => true,
                             'roles' => ['admin'],
                         ]
                     ]
                 ]
             ]
            ...
            ...
        ],

```

Usage
-----

[](#usage)

Add widgets to view five

```

Review list:

Review form:

```

Customize
---------

[](#customize)

You can override widgets views. Just add vie folder in widget. For example:

```
