PHPackages                             urmaul/yii-jsonfields - 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. urmaul/yii-jsonfields

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

urmaul/yii-jsonfields
=====================

Yii CActiveRecord behavior that allows to create array attributes which are stored in DB using json.

v1.0.0(11y ago)1291MITPHP

Since Feb 7Pushed 10y agoCompare

[ Source](https://github.com/urmaul/jsonfields)[ Packagist](https://packagist.org/packages/urmaul/yii-jsonfields)[ Docs](https://github.com/urmaul/jsonfields)[ RSS](/packages/urmaul-yii-jsonfields/feed)WikiDiscussions master Synced today

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

Abandoned since [Mysql supports json itself](https://dev.mysql.com/doc/refman/5.7/en/json.html).

JsonFields Yii Behavior
=======================

[](#jsonfields-yii-behavior)

Yii CActiveRecord behavior that allows to create array attributes which are stored in DB using json.

How to use
----------

[](#how-to-use)

TODO: add comments

### How to attach

[](#how-to-attach)

```
public function behaviors()
{
    return array(
        array(
            'class' => 'ext.jsonfields.JsonFieldsBehavior',
            'attributes' => 'customParams',
            'arrayMode' => true,
        ),
    );
}
```

Settings
--------

[](#settings)

TODO: add comments

- *attributes*
- *arrayMode*

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

4164d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22364b943477de78bf89bb19b5708a93666e38b5f1ad954ded9c656b3c116cb8?d=identicon)[urmaul](/maintainers/urmaul)

---

Tags

jsonBehavioryiiCActiveRecord

### Embed Badge

![Health badge](/badges/urmaul-yii-jsonfields/health.svg)

```
[![Health](https://phpackages.com/badges/urmaul-yii-jsonfields/health.svg)](https://phpackages.com/packages/urmaul-yii-jsonfields)
```

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k334.7M790](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k504.8M167](/packages/mtdowling-jmespathphp)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k141.9M929](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k92.4M679](/packages/jms-serializer-bundle)[colinodell/json5

UTF-8 compatible JSON5 parser for PHP

30525.1M57](/packages/colinodell-json5)[clue/ndjson-react

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

15882.2M31](/packages/clue-ndjson-react)

PHPackages © 2026

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