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

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

gunter1020/yii2-common
======================

Yii 2 Common Lib

1.1.1(2y ago)15.5k2MITPHPPHP &gt;=8.1

Since Apr 5Pushed 10mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (23)Used By (0)

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

[](#yii2-common-lib)

[![PHP Version Require](https://camo.githubusercontent.com/18bfc20d85ff33c0ae30f77299b715adc80d1e39b019d6a74230d82affcacf46/687474703a2f2f706f7365722e707567782e6f72672f67756e746572313032302f796969322d636f6d6d6f6e2f726571756972652f706870)](https://packagist.org/packages/gunter1020/yii2-common)[![Latest Stable Version](https://camo.githubusercontent.com/891c868c13ed932e4e17a4930cb438ded3888b5b0ffb7c7efa11c3603036a961/687474703a2f2f706f7365722e707567782e6f72672f67756e746572313032302f796969322d636f6d6d6f6e2f76)](https://packagist.org/packages/gunter1020/yii2-common)[![Total Downloads](https://camo.githubusercontent.com/e93f6f13ce52c6eca9474df7b90940c597ff5531abb278b77aa811ddfb1eba43/687474703a2f2f706f7365722e707567782e6f72672f67756e746572313032302f796969322d636f6d6d6f6e2f646f776e6c6f616473)](https://packagist.org/packages/gunter1020/yii2-common)[![License](https://camo.githubusercontent.com/f59f32d79c9b2ea32ac527395d94cad7c3c4dc6e057c8cb8b07b6e67f231b4f8/687474703a2f2f706f7365722e707567782e6f72672f67756e746572313032302f796969322d636f6d6d6f6e2f6c6963656e7365)](https://packagist.org/packages/gunter1020/yii2-common)

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

[](#installation)

```
composer require gunter1020/yii2-common
```

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

```
{
    "require": {
        "gunter1020/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 gunter1020\yii2\common\base\GuSecurity;

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

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

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

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance40

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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 ~37 days

Recently: every ~56 days

Total

22

Last Release

1076d ago

Major Versions

0.6.9 → 1.0.12022-10-10

### Community

Maintainers

![](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 (60 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![weiyahsuwork](https://avatars.githubusercontent.com/u/67669549?v=4)](https://github.com/weiyahsuwork "weiyahsuwork (1 commits)")

---

Tags

yii2commonextensionyii

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gunter1020-yii2-common/health.svg)](https://phpackages.com/packages/gunter1020-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)
