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

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

baibaratsky/yii2-serialized-attributes-behavior
===============================================

Yii2 Serialized Attributes Behavior

v1.2.0(9y ago)1174.1k↓35.2%6[1 issues](https://github.com/baibaratsky/yii2-serialized-attributes-behavior/issues)9BSD-3-ClausePHP

Since Jun 23Pushed 9y ago3 watchersCompare

[ Source](https://github.com/baibaratsky/yii2-serialized-attributes-behavior)[ Packagist](https://packagist.org/packages/baibaratsky/yii2-serialized-attributes-behavior)[ Docs](http://github.com/baibaratsky/yii2-serialized-attributes-behavior)[ RSS](/packages/baibaratsky-yii2-serialized-attributes-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (9)

Yii2 Serialized Attributes Behavior
===================================

[](#yii2-serialized-attributes-behavior)

This Yii2 model behavior allows you to store arrays in attributes. To attach the behavior put the following code in your model:

```
    public function behaviors()
   	{
   		return [
   			'serializedAttributes' => [
   				'class' => SerializedAttributes::className(),

   				// Define the attributes you want to be serialized
                'attributes' => ['serializedData', 'moreSerializedData'],

                // Enable this option if your DB is not in UTF-8
                // (more info at http://www.jackreichert.com/2014/02/02/handling-a-php-unserialize-offset-error/)
                // 'encode' => true,
   			],
   		];
   	}
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~105 days

Total

5

Last Release

3560d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f7d017b3e4596f4d1dd702da14192fd966e18ca3b21ba25b33f43803b2ce18a?d=identicon)[baibaratsky](/maintainers/baibaratsky)

---

Top Contributors

[![baibaratsky](https://avatars.githubusercontent.com/u/1774061?v=4)](https://github.com/baibaratsky "baibaratsky (5 commits)")[![edwardstock](https://avatars.githubusercontent.com/u/1484961?v=4)](https://github.com/edwardstock "edwardstock (1 commits)")

---

Tags

serializationyii2yii2-extensionarrayserializeattributesyii2Behavioryiiattributeserialized

### Embed Badge

![Health badge](/badges/baibaratsky-yii2-serialized-attributes-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/baibaratsky-yii2-serialized-attributes-behavior/health.svg)](https://phpackages.com/packages/baibaratsky-yii2-serialized-attributes-behavior)
```

###  Alternatives

[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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