PHPackages                             pengfugui/jsongenerator - 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. pengfugui/jsongenerator

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

pengfugui/jsongenerator
=======================

a json generate php class code tool

1.1.0(8y ago)148MITPHPPHP &gt;=5.4.0

Since Dec 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pengfugui/jsongenerator)[ Packagist](https://packagist.org/packages/pengfugui/jsongenerator)[ Docs](https://github.com/pengfugui/jsongenerator)[ RSS](/packages/pengfugui-jsongenerator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

JsonGeneratePhpClass
====================

[](#jsongeneratephpclass)

一个使用json生成php class代码的工具

composer安装
----------

[](#composer安装)

`composer require pengfugui/jsongenerator`

使用方式
----

[](#使用方式)

```
$generator = new ClassGenerator();

$json =  $model->getClassName(),
        'namespace' => $model->getNamespace(),
        'code' => code2HtmlEntity($model->getClassCode())
    ];
}
```

案例
--

[](#案例)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~0 days

Total

5

Last Release

3118d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13756242?v=4)[PengFuGui](/maintainers/pengfugui)[@pengfugui](https://github.com/pengfugui)

---

Top Contributors

[![pengfugui](https://avatars.githubusercontent.com/u/13756242?v=4)](https://github.com/pengfugui "pengfugui (11 commits)")

---

Tags

phpjsongeneratebean

### Embed Badge

![Health badge](/badges/pengfugui-jsongenerator/health.svg)

```
[![Health](https://phpackages.com/badges/pengfugui-jsongenerator/health.svg)](https://phpackages.com/packages/pengfugui-jsongenerator)
```

###  Alternatives

[adhocore/json-fixer

Fix/repair truncated JSON data

51569.3k2](/packages/adhocore-json-fixer)[blancks/fast-jsonpatch-php

Class designed to efficiently handle JSON Patch operations in accordance with the RFC 6902 specification

397.9k](/packages/blancks-fast-jsonpatch-php)[josantonius/json

PHP simple library for managing Json files.

1722.4k10](/packages/josantonius-json)

PHPackages © 2026

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