PHPackages                             m-comscience/yii2-core-multi-value-behavior - 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. m-comscience/yii2-core-multi-value-behavior

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

m-comscience/yii2-core-multi-value-behavior
===========================================

Active Record Behaviors for Yii Framework

00PHP

Since Nov 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MComScience/yii2-core-multi-value-behavior)[ Packagist](https://packagist.org/packages/m-comscience/yii2-core-multi-value-behavior)[ RSS](/packages/m-comscience-yii2-core-multi-value-behavior/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii2 Active Record Behaviors
============================

[](#yii2-active-record-behaviors)

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

[](#installation)

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

Install

```
composer require m-comscience/yii2-core-multi-value-behavior

```

Usage
-----

[](#usage)

model

```
use mcomscience\behaviors\CoreMultiValueBehavior;

public function behaviors()
{
    return [
        [
            'class' => CoreMultiValueBehavior::className(),
            'attributes' => [
                ActiveRecord::EVENT_BEFORE_INSERT => ['attribute1'],
                ActiveRecord::EVENT_BEFORE_UPDATE => ['attribute2'],
            ],
            'value' => function ($event) {
                return $event->sender[$event->data];
            },
        ],
    ];
}
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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/f07077991bfb47848a8396ab5d1119a34eef5f998246566906f3da1d23aa74f1?d=identicon)[m-comscience](/maintainers/m-comscience)

---

Top Contributors

[![MComScience](https://avatars.githubusercontent.com/u/11044942?v=4)](https://github.com/MComScience "MComScience (1 commits)")

### Embed Badge

![Health badge](/badges/m-comscience-yii2-core-multi-value-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/m-comscience-yii2-core-multi-value-behavior/health.svg)](https://phpackages.com/packages/m-comscience-yii2-core-multi-value-behavior)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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