PHPackages                             three-legged-white-crow/php-code-generator - 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. three-legged-white-crow/php-code-generator

ActiveLibrary

three-legged-white-crow/php-code-generator
==========================================

generator php code

2.0(1y ago)450Apache-2.0PHP

Since Sep 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Three-legged-white-crow/phpCodeGenerator)[ Packagist](https://packagist.org/packages/three-legged-white-crow/php-code-generator)[ RSS](/packages/three-legged-white-crow-php-code-generator/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

phpCodeGenerator
================

[](#phpcodegenerator)

install
-------

[](#install)

```
composer require three-legged-white-crow/php-code-generator dev-main

```

how to use
----------

[](#how-to-use)

input:

```
        $class = new ClassT('Test', 'Father');
        $class->addUse('Test/add');
        $class->addTrait('Singleton');
        $class->addPublicProperty('goods');
        $class->addProtectProperty('pp');
        $class->addClassComment('@property string $goodsName');
        $class->addClassComment('@property string $goodsName');
        $class->addPublicMethod('HelloWorld', '', "echo 'hello world';");
        echo $class;

```

output:

```
use Test/add;

/**
 * @property string $goodsName
 * @property string $goodsName
 */
class Test extends Father
{
    use Singleton;

    public $goods;

    protected $pp;

    public function HelloWorld()
    {
        echo 'hello world';
    }
}

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance44

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

438d ago

Major Versions

1.0.x-dev → 2.02025-03-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/6267ff06762835487f906d22177b024d04afd8ea9b51ee7421bbdf05490b1501?d=identicon)[waterhark](/maintainers/waterhark)

---

Top Contributors

[![shuimengzhi](https://avatars.githubusercontent.com/u/8331582?v=4)](https://github.com/shuimengzhi "shuimengzhi (19 commits)")

---

Tags

phpgeneratorauto

### Embed Badge

![Health badge](/badges/three-legged-white-crow-php-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/three-legged-white-crow-php-code-generator/health.svg)](https://phpackages.com/packages/three-legged-white-crow-php-code-generator)
```

###  Alternatives

[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4869.0k](/packages/jkphl-iconizr)[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1393.7k](/packages/tomloprod-radiance)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k34](/packages/robiningelbrecht-phpunit-coverage-tools)

PHPackages © 2026

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