PHPackages                             nueip/yii2-common - 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. nueip/yii2-common

ActiveYii2-extension[Framework](/categories/framework)

nueip/yii2-common
=================

Yii 2 Common Lib

v1.2.0(10mo ago)0148MITPHPPHP &gt;=8.1CI passing

Since Jun 2Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/nueip/yii2-common)[ Packagist](https://packagist.org/packages/nueip/yii2-common)[ RSS](/packages/nueip-yii2-common/feed)WikiDiscussions main Synced 1mo ago

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

Yii2 Common Lib
===============

[](#yii2-common-lib)

[![PHP Version Require](https://camo.githubusercontent.com/c102dd3dd1674348422fca88a968e40ad5f4782dd7a074a8bf3b9d4897311067/687474703a2f2f706f7365722e707567782e6f72672f6e756569702f796969322d636f6d6d6f6e2f726571756972652f706870)](https://packagist.org/packages/nueip/yii2-common)[![Latest Stable Version](https://camo.githubusercontent.com/b3b99cde267699d8092c754850d22b8de0be7b015e692536e0985a41b0bad485/687474703a2f2f706f7365722e707567782e6f72672f6e756569702f796969322d636f6d6d6f6e2f76)](https://packagist.org/packages/nueip/yii2-common)[![Total Downloads](https://camo.githubusercontent.com/ca9988addc968a9b31c76b02484618321219a929251aef9f7f6815a5eee22c7c/687474703a2f2f706f7365722e707567782e6f72672f6e756569702f796969322d636f6d6d6f6e2f646f776e6c6f616473)](https://packagist.org/packages/nueip/yii2-common)[![License](https://camo.githubusercontent.com/2e289fbac96e3a0d13e4af07b8aa18f8799cbfd82920b6611915bfd01b856d86/687474703a2f2f706f7365722e707567782e6f72672f6e756569702f796969322d636f6d6d6f6e2f6c6963656e7365)](https://packagist.org/packages/nueip/yii2-common)

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

[](#installation)

```
composer require nueip/yii2-common
```

or include the dependency in the `composer.json` file:

```
{
    "require": {
        "nueip/yii2-common": "^1.0"

    }
}
```

Configuration
-------------

[](#configuration)

### `Optional` Use [EncryptBehavior](src/behaviors/EncryptBehavior.php)

[](#optional-use-encryptbehavior)

> Setting your config file. `e.g., /config/web.php`

```
use nueip\yii2\common\base\GuSecurity;

$config = [
    'components' => [
        'security' => [
            'class' => GuSecurity::class,
            'encryptKey' => 'YOUR_ENCRYPT_KEY',
        ]
    ]
]
```

> Setting your models file. `e.g., /models/Account.php`

```
use nueip\yii2\common\behaviors\EncryptBehavior;

public function behaviors()
{
    return [
        'encryptAttrs' => [
            'class' => EncryptBehavior::class,
            'attributes' => ['id_number', 'salary_amount'],
        ],
    ];
}
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance55

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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 ~773 days

Total

2

Last Release

300d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/942836f1d8cd35bae7a32f3d2998cf2c769179e8ea4026db206154de187a272e?d=identicon)[nueip](/maintainers/nueip)

![](https://www.gravatar.com/avatar/6bd60e16d77c1a5d8ade5391d4467721da169c487886b9f568586bcc66661050?d=identicon)[gunter1020](/maintainers/gunter1020)

---

Top Contributors

[![gunter1020](https://avatars.githubusercontent.com/u/15287859?v=4)](https://github.com/gunter1020 "gunter1020 (64 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![weiyahsuwork](https://avatars.githubusercontent.com/u/67669549?v=4)](https://github.com/weiyahsuwork "weiyahsuwork (1 commits)")

---

Tags

commonextensionyii

### Embed Badge

![Health badge](/badges/nueip-yii2-common/health.svg)

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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