PHPackages                             demmonico/yii2-behaviors - 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. demmonico/yii2-behaviors

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

demmonico/yii2-behaviors
========================

Yii2 behaviors library

1.0.0(9y ago)03.5k↓33.3%11MITPHPPHP &gt;5.5.0

Since Aug 22Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

\#Yii2 behaviors library ##Description Yii2 behaviors library which used in web-application development.

\##Composition ###SanitizeBehavior

Sanitize model string attributes (all string attributes by default). You can exclude some fields or allow some html tags.

\#####Usage:

```
// in model ActiveRecord
public function behaviors()
{
    return [
        SanitizeBehavior::className(),
    ];
}
```

\###TimestampBehavior Extends standard yii class to use with not required attributes.

\#####Usage:

```
// in model ActiveRecord
public function behaviors()
{
    return [
        TimestampBehavior::className(),
    ];
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3556d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc04250a201bcb8f1e48f8d4551e4785a02e79f66f52449e70aa2435f2cdcba5?d=identicon)[demmonico](/maintainers/demmonico)

---

Top Contributors

[![demmonico](https://avatars.githubusercontent.com/u/10497315?v=4)](https://github.com/demmonico "demmonico (2 commits)")

---

Tags

yii2extensionBehavioryiicomponent

### Embed Badge

![Health badge](/badges/demmonico-yii2-behaviors/health.svg)

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

###  Alternatives

[skeeks/cms

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

13825.6k47](/packages/skeeks-cms)[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)[sjaakp/yii2-illustrated-behavior

ActiveRecord Behavior with associated Widget for Yii2.

423.1k](/packages/sjaakp-yii2-illustrated-behavior)

PHPackages © 2026

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