PHPackages                             yiicod/yii2-base - 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. yiicod/yii2-base

ActiveYii2-extension

yiicod/yii2-base
================

The base behaviors, helpers, etc. for the Yii2 framework

1.0.7(7y ago)425.9k—0%6MITPHP

Since Mar 15Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (9)Used By (6)

The base library for extensions and apps
========================================

[](#the-base-library-for-extensions-and-apps)

[![Latest Stable Version](https://camo.githubusercontent.com/c12f9e512020a90ea6810fa8a9fb975c62d0c1492ead1f6f8335beecf6294fd7/68747470733a2f2f706f7365722e707567782e6f72672f796969636f642f796969322d626173652f762f737461626c65)](https://packagist.org/packages/yiicod/yii2-base) [![Total Downloads](https://camo.githubusercontent.com/d1248a872a6a4d8c7fdb5406171486c23aa634127ec6d4386c61714dac9415ef/68747470733a2f2f706f7365722e707567782e6f72672f796969636f642f796969322d626173652f646f776e6c6f616473)](https://packagist.org/packages/yiicod/yii2-base) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3b3c974c93b4fc8b781bbb2fd0262f11321d716a25b58b622155affef52b7244/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969636f642f796969322d626173652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiicod/yii2-base/?branch=master)[![Code Climate](https://camo.githubusercontent.com/ac81843f9132bba03e03d46ea2de4de6f47697151ea48853badab89d437fe78c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f796969636f642f796969322d626173652f6261646765732f6770612e737667)](https://codeclimate.com/github/yiicod/yii2-base)

#### Installation

[](#installation)

Either run

```
php composer.phar require --prefer-dist yiicod/yii2-base "*"

```

or add

```
"yiicod/yii2-base": "*"
```

#### Usage action

[](#usage-action)

- yiicod\\base\\actions\\base\\Action. Methods: performAjaxValidation, loadModel

#### Usage model

[](#usage-model)

```
    /**
     * Attributes mapper(Dynamic attr by mapping).
     * yiicod\base\models\behaviors\AttributesMapBehavior
     * $model->title // But in db it can be title_ext
     * $model->alias // But in db it can be slug
     */
    [
        'class' => 'yiicod\base\models\behaviors\AttributesMapBehavior',
        'attributesMap' => [
            'fieldTitle' => 'title_ext',
            'fieldAlias' => 'slug',
        ]
    ],
    /**
     * HTMLPurify
     */
    [
        'class' => 'yiicod\base\models\behaviors\XssBehavior',
    ]
```

#### Usage Enum

[](#usage-enum)

- Abstract class Enumerable for enum

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~181 days

Recently: every ~259 days

Total

8

Last Release

2804d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7934283ca98b7f31bb5bf13119a8495cad80ac9097125a48792f47caddb588b9?d=identicon)[lexxorlov](/maintainers/lexxorlov)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/yiicod-yii2-base/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)

PHPackages © 2026

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