PHPackages                             eluhr/yii2-json-attribute-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. eluhr/yii2-json-attribute-behavior

ActiveYii2-extension[Parsing &amp; Serialization](/categories/parsing)

eluhr/yii2-json-attribute-behavior
==================================

This behavior automatically decodes attributes from JSON to arrays before validation, handling errors and re-encoding if validation fails.

1.0.0(2y ago)21.6kBSD-3-ClausePHP &gt;=7.4

Since Dec 28Compare

[ Source](https://github.com/eluhr/yii2-json-attribute-behavior)[ Packagist](https://packagist.org/packages/eluhr/yii2-json-attribute-behavior)[ RSS](/packages/eluhr-yii2-json-attribute-behavior/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/eluhr/yii2-json-attribute-behavior).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

865d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07b2ebef20cf3f8b95894ff50fdb0ba46cf04c8d74ffbb6a4e724af8569a8aec?d=identicon)[eluhr](/maintainers/eluhr)

---

Top Contributors

[![eluhr](https://avatars.githubusercontent.com/u/13000805?v=4)](https://github.com/eluhr "eluhr (22 commits)")

---

Tags

jsonyii2extensionBehavior

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eluhr-yii2-json-attribute-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/eluhr-yii2-json-attribute-behavior/health.svg)](https://phpackages.com/packages/eluhr-yii2-json-attribute-behavior)
```

###  Alternatives

[kdn/yii2-json-editor

JSON editor widget (josdejong/jsoneditor) for Yii 2.

22570.0k3](/packages/kdn-yii2-json-editor)[nizsheanez/yii2-json-rpc

A lightweight JsonRpc Server and Client for PHP

2034.0k](/packages/nizsheanez-yii2-json-rpc)

PHPackages © 2026

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