PHPackages                             frostealth/yii2-array-field - 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. frostealth/yii2-array-field

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

frostealth/yii2-array-field
===========================

Behavior that allows you to store arrays in attributes

v1.0.2(10y ago)113.3k↑392.9%2[1 issues](https://github.com/frostealth/yii2-array-field/issues)MITPHPPHP &gt;=5.4.0

Since Jun 20Pushed 10y ago1 watchersCompare

[ Source](https://github.com/frostealth/yii2-array-field)[ Packagist](https://packagist.org/packages/frostealth/yii2-array-field)[ Docs](https://github.com/frostealth/yii2-array-field)[ RSS](/packages/frostealth-yii2-array-field/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Yii2 Array Field Behavior
=========================

[](#yii2-array-field-behavior)

This Yii2 model behavior allows you to store arrays in attributes.

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

[](#installation)

Run the [Composer](http://getcomposer.org/download/) command to install the latest stable version:

```
composer require frostealth/yii2-array-field @stable

```

Usage
-----

[](#usage)

Just attach the behavior to your model.

```
use frostealth\yii2\behaviors\ArrayFieldBehavior;

public function behaviors()
{
    return [
        [
            'class' => ArrayFieldBehavior::className(),
            'attributes' => ['attribute1', 'attribute2'],
            // 'defaultEncodedValue' => null,
            // 'defaultDecodedValue' => [],
        ],
    ];
}
```

License
-------

[](#license)

The MIT License (MIT). See [LICENSE.md](https://github.com/frostealth/yii2-array-field/blob/master/LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3887d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3209d007425f192de0e0941e6181d2dfd36ed4f00714675ca7fb525c6fd27ed2?d=identicon)[frostealth](/maintainers/frostealth)

---

Top Contributors

[![frostealth](https://avatars.githubusercontent.com/u/1785217?v=4)](https://github.com/frostealth "frostealth (6 commits)")

---

Tags

attributesserializationyii2yii2-behaviorsyii2-extensionjsonarrayyii2Behaviorattribute

### Embed Badge

![Health badge](/badges/frostealth-yii2-array-field/health.svg)

```
[![Health](https://phpackages.com/badges/frostealth-yii2-array-field/health.svg)](https://phpackages.com/packages/frostealth-yii2-array-field)
```

###  Alternatives

[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1275.5k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)[mdmsoft/yii2-autonumber

Auto number extension for the Yii framework

1831.3k](/packages/mdmsoft-yii2-autonumber)[valentinek/yii2-closure-table-behavior

This extension allows you to get functional for closure table trees.

1615.5k](/packages/valentinek-yii2-closure-table-behavior)[v0lume/yii2-meta-tags

DB based model meta data for SEO

204.1k](/packages/v0lume-yii2-meta-tags)

PHPackages © 2026

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