PHPackages                             yiier/yii2-merit - 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. yiier/yii2-merit

ActiveYii2-extension

yiier/yii2-merit
================

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

0.1.4(9y ago)151.6k4[1 PRs](https://github.com/yiier/yii2-merit/pulls)BSD-3-ClausePHP

Since Mar 21Pushed 8y ago4 watchersCompare

[ Source](https://github.com/yiier/yii2-merit)[ Packagist](https://packagist.org/packages/yiier/yii2-merit)[ RSS](/packages/yiier-yii2-merit/feed)WikiDiscussions master Synced today

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

Reputation engine for Yii2
==========================

[](#reputation-engine-for-yii2)

[![Latest Stable Version](https://camo.githubusercontent.com/12b938b2029e64c434df5e97986ecc3c9e575cc6305dc4b91d295f06f610b27d/68747470733a2f2f706f7365722e707567782e6f72672f79696965722f796969322d6d657269742f762f737461626c65)](https://packagist.org/packages/yiier/yii2-merit)[![Total Downloads](https://camo.githubusercontent.com/c41c54f614cb9cc2c8608ff1fac09199c49511c6fe2aaed9e49fd789ffe053bb/68747470733a2f2f706f7365722e707567782e6f72672f79696965722f796969322d6d657269742f646f776e6c6f616473)](https://packagist.org/packages/yiier/yii2-merit)[![Latest Unstable Version](https://camo.githubusercontent.com/a97a2eca1c85d6883b12d226b0561cbee40ea648b7622b0bf086636d0a8a745b/68747470733a2f2f706f7365722e707567782e6f72672f79696965722f796969322d6d657269742f762f756e737461626c65)](https://packagist.org/packages/yiier/yii2-merit)[![License](https://camo.githubusercontent.com/f9b3c5d153a1b7b50d512aaa58b1753c867b2a8560619109fd981f682e06c215/68747470733a2f2f706f7365722e707567782e6f72672f79696965722f796969322d6d657269742f6c6963656e7365)](https://packagist.org/packages/yiier/yii2-merit)

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

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

[](#installation)

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

Either run

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

```

or add

```
"yiier/yii2-merit": "*"

```

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

Migrations
----------

[](#migrations)

Run the following command

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

```

Usage
-----

[](#usage)

Configure Controller class as follows :

```
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:

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

You can then access Merit Module through the following URL:

```
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

```

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

Every ~29 days

Total

5

Last Release

3534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c0612f70d09feb06ab5d24a31e0cc551f1ee547b42308c695e34d76181f18cf?d=identicon)[forecho](/maintainers/forecho)

---

Top Contributors

[![forecho](https://avatars.githubusercontent.com/u/1725326?v=4)](https://github.com/forecho "forecho (14 commits)")

---

Tags

yii2yii2-extensionyii2extensionreputationmerit

### Embed Badge

![Health badge](/badges/yiier-yii2-merit/health.svg)

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

###  Alternatives

[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

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

PHPackages © 2026

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