PHPackages                             dmp/cg-lib - 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. dmp/cg-lib

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

dmp/cg-lib
==========

Toolset for generating PHP code

0.1.1(1y ago)05503Apache-2.0PHPPHP &gt;=8.1

Since Sep 26Pushed 1y agoCompare

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

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

CG library
==========

[](#cg-library)

CG library provides a toolset for generating PHP code. Current version supports only PHP 8.1+

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

30

—

LowBetter than 64% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.6% 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 ~694 days

Total

2

Last Release

635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0098f8fc19f0c1027a7d88f03c06c01b666c9a92c0fde943bdad446b05041701?d=identicon)[Armenian](/maintainers/Armenian)

---

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)")[![Armenian](https://avatars.githubusercontent.com/u/6642299?v=4)](https://github.com/Armenian "Armenian (2 commits)")[![nmpolo](https://avatars.githubusercontent.com/u/1206982?v=4)](https://github.com/nmpolo "nmpolo (2 commits)")[![pulzarraider](https://avatars.githubusercontent.com/u/960844?v=4)](https://github.com/pulzarraider "pulzarraider (1 commits)")[![h4cc](https://avatars.githubusercontent.com/u/2981491?v=4)](https://github.com/h4cc "h4cc (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (1 commits)")

---

Tags

code-generation

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jms/cg

Toolset for generating PHP code

15615.8M8](/packages/jms-cg)[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)
