PHPackages                             yii2x/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yii2x/yii2-common

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yii2x/yii2-common
=================

YII2 Common

016PHP

Since May 14Pushed 9y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

YII2 Common
===========

[](#yii2-common)

YII2 Common

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yii2x/yii2-common "*"

```

or add

```
"yii2x/yii2-common": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

Model Configuration:
--------------------

[](#model-configuration)

```
    public function behaviors()
    {
        return [

	    [
                'class' => \yii2x\common\behaviors\IpAddressBlameableBehavior::className(),
                'createdIpAttribute' => 'created_ip',
                'updatedIpAttribute' => 'updated_ip',
            ],
            [
                'class' => \yii2x\common\behaviors\JsonFieldBehavior::className(),
                'attributes' => ['params']
            ]
        ];
    }
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/08fbce981a3ddf0cf9ce3305d03908603c8f7ae2ff510c95138c166d66308ec8?d=identicon)[basowy](/maintainers/basowy)

---

Top Contributors

[![yii2x](https://avatars.githubusercontent.com/u/27988203?v=4)](https://github.com/yii2x "yii2x (10 commits)")

### Embed Badge

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

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

###  Alternatives

[soloterm/grapheme

A PHP package to measure the width of unicode strings rendered to a terminal.

79254.2k6](/packages/soloterm-grapheme)

PHPackages © 2026

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