PHPackages                             jms/cg - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jms/cg

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jms/cg
======

Toolset for generating PHP code

1.2.0(10y ago)15615.8M↑17.2%34[10 issues](https://github.com/schmittjoh/cg-library/issues)[10 PRs](https://github.com/schmittjoh/cg-library/pulls)8Apache2PHPPHP &gt;=5.3.0

Since Jan 2Pushed 3y ago8 watchersCompare

[ Source](https://github.com/schmittjoh/cg-library)[ Packagist](https://packagist.org/packages/jms/cg)[ RSS](/packages/jms-cg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (8)

CG library provides a toolset for generating PHP code
=====================================================

[](#cg-library-provides-a-toolset-for-generating-php-code)

Overview
--------

[](#overview)

This library provides some tools that you commonly need for generating PHP code. One of it's strength lies in the enhancement of existing classes with behaviors.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity63

Solid adoption and visibility

Community30

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~778 days

Total

3

Last Release

3694d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9da34818b48c46c2690876202264d1e45cb9893c368facb55f8851e47495ecfb?d=identicon)[johannes](/maintainers/johannes)

---

Top Contributors

[![schmittjoh](https://avatars.githubusercontent.com/u/197017?v=4)](https://github.com/schmittjoh "schmittjoh (52 commits)")[![jmcclell](https://avatars.githubusercontent.com/u/1063492?v=4)](https://github.com/jmcclell "jmcclell (4 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (3 commits)")[![nmpolo](https://avatars.githubusercontent.com/u/1206982?v=4)](https://github.com/nmpolo "nmpolo (2 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (1 commits)")[![pulzarraider](https://avatars.githubusercontent.com/u/960844?v=4)](https://github.com/pulzarraider "pulzarraider (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![h4cc](https://avatars.githubusercontent.com/u/2981491?v=4)](https://github.com/h4cc "h4cc (1 commits)")

---

Tags

code-generation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jms-cg/health.svg)

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

###  Alternatives

[gossi/php-code-generator

Toolset for generating PHP code

148203.9k32](/packages/gossi-php-code-generator)

PHPackages © 2026

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