PHPackages                             betsuno/yii2-json-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. [Framework](/categories/framework)
4. /
5. betsuno/yii2-json-behavior

ActiveLibrary[Framework](/categories/framework)

betsuno/yii2-json-behavior
==========================

JSON behavior for Yii2 framework

0.1.1(8y ago)119MITPHP

Since Feb 4Pushed 8y ago1 watchersCompare

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

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

Yii2 JSON behavior
==================

[](#yii2-json-behavior)

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

[](#installation)

Run command in shell

```
> php composer.phar require "betsuno/yii2-json-behavior"
```

or add

```
"betsuno/yii2-json-behavior": "*"
```

in the `require` section of the `composer.json` file in your project

Usage
-----

[](#usage)

```
use yii2/behaviors/JsonBehavior
...
class YourClass extendes Model
{
    ...
    public function behaviors()
    {
        return [
            JsonBehavior::register('propertyName'),
        ];
    }
    ...
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~15 days

Total

2

Last Release

3000d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bb28e87428383d3adaf380f079a5971ccd28b3c9f9f2183870d2f4e219fc9d4?d=identicon)[BetsuNo](/maintainers/BetsuNo)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-twig

The Twig integration for the Yii framework

1431.9M32](/packages/yiisoft-yii2-twig)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k46](/packages/skeeks-cms)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

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