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 9y 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 1mo ago

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 54% 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

4117d 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.6k316.9M612](/packages/justinrainbow-json-schema)[ergebnis/json-normalizer

Provides generic and vendor-specific normalizers for normalizing JSON documents.

8237.5M6](/packages/ergebnis-json-normalizer)[cranetm/yii2-json-rpc-2.0

JSON RPC 2.0 for Yii2 strict type validation of request and response data

2679.6k1](/packages/cranetm-yii2-json-rpc-20)[nizsheanez/yii2-json-rpc

A lightweight JsonRpc Server and Client for PHP

2034.0k](/packages/nizsheanez-yii2-json-rpc)[opensoft/simple-serializer

Simple Serializer

1914.2k1](/packages/opensoft-simple-serializer)[open-code-modeling/json-schema-to-php

Parses JSON schema files and provides an API to easily generate code from JSON schema.

111.0k2](/packages/open-code-modeling-json-schema-to-php)

PHPackages © 2026

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