2017 © Pedro Peláez
 

yii2-extension yii2-merit

用于实现积分,等级功能的设计

image

yiier/yii2-merit

用于实现积分,等级功能的设计

  • Monday, August 1, 2016
  • by forecho
  • Repository
  • 5 Watchers
  • 11 Stars
  • 1,060 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 6 Versions
  • 7 % Grown

The README.md

Reputation engine for Yii2

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

用于实现积分,等级功能的设计, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist yiier/yii2-merit "*"

or add, (*5)

"yiier/yii2-merit": "*"

to the require section of your composer.json file., (*6)

Migrations

Run the following command, (*7)

php yii migrate --migrationPath=@yiier/merit/migrations/

Usage

Configure Controller class as follows :, (*8)

use use yiier\merit\MeritBehavior;

class Controller extends \yii\web\Controller
{
    public function behaviors()
    {
        return [
            MeritBehavior::className(),
        ];
    }
}

Once the extension is installed, simply modify your application configuration as follows:, (*9)

return [
    'modules' => [
        'merit' => [
            'class' => 'yiier\merit\Module',
            'types' => [1 => '积分', 2 => '声望'] // Optional
        ],
    ],
];

You can then access Merit Module through the following URL:, (*10)

http://localhost/path/to/index.php?r=merit/merit
http://localhost/path/to/index.php?r=merit/merit-log
http://localhost/path/to/index.php?r=merit/merit-template

The Versions

01/08 2016

dev-master

9999999-dev

用于实现积分,等级功能的设计

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 merit reputation

17/07 2016

0.1.4

0.1.4.0

用于实现积分,等级功能的设计

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 merit reputation

25/03 2016

v0.1.3

0.1.3.0

用于实现积分,等级功能的设计

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 merit reputation

25/03 2016

v0.1.2

0.1.2.0

用于实现积分,等级功能的设计

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 merit reputation

22/03 2016

v0.1.1

0.1.1.0

用于实现积分,等级功能的设计

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 merit reputation

21/03 2016

v0.1

0.1.0.0

用于实现积分,等级功能的设计

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 merit reputation