PHPackages                             net\_bazzline/php\_component\_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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. net\_bazzline/php\_component\_code\_generator

AbandonedArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

net\_bazzline/php\_component\_code\_generator
=============================================

free as in freedom component to generate php code for class, file, method, property, constant, documentation

1.2.1(8y ago)51.6k1[1 issues](https://github.com/bazzline/php_component_code_generator/issues)1LGPLv3PHPPHP &gt;=5.6

Since May 24Pushed 4y ago3 watchersCompare

[ Source](https://github.com/bazzline/php_component_code_generator)[ Packagist](https://packagist.org/packages/net_bazzline/php_component_code_generator)[ RSS](/packages/net-bazzline-php-component-code-generator/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (21)Used By (1)

Full Stop
=========

[](#full-stop)

I still like the idea but there is currently no use case to develop it anymore.

PHP Code Generator
==================

[](#php-code-generator)

This project aims to deliver a easy to use free as in freedom php code generator. PHPDOC-Generation is also implemented as general generation tasks like "class", "function" or "property" generation.

The build status of the current master branch is tracked by Travis CI: [![Build Status](https://camo.githubusercontent.com/5c4fb55efd0dd3f8b838d19ce13a726927f6e2ef9344ebd9335fbd78b4537731/68747470733a2f2f7472617669732d63692e6f72672f62617a7a6c696e652f7068705f636f6d706f6e656e745f636f64655f67656e657261746f722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/bazzline/php_component_code_generator)[![Latest stable](https://camo.githubusercontent.com/8ac011a72e8c2fcf6d9fa22b8dccc2b75fe5e590e87bdaaa4c818a385eead6ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65745f62617a7a6c696e652f7068705f636f6d706f6e656e745f636f64655f67656e657261746f722e737667)](https://packagist.org/packages/net_bazzline/php_component_code_generator)

The scrutinizer status are: [![code quality](https://camo.githubusercontent.com/e50f6b542115085fd8d2369456208f1ef1ae692f850ef7c3c9cb5d0320546424/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617a7a6c696e652f7068705f636f6d706f6e656e745f636f64655f67656e657261746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bazzline/php_component_code_generator/) | [![build status](https://camo.githubusercontent.com/8bae907f0f05d410ab4be5cf6d1b8658ff33cd039c6ae0491f4008c3106a9770/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617a7a6c696e652f7068705f636f6d706f6e656e745f6c6f6361746f725f67656e657261746f722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bazzline/php_component_code_generator/)

The versioneye status is: [![Dependency Status](https://camo.githubusercontent.com/1f47399e8c5452d2f59f39cb17e31ff6861a5e28a13769fd3e1d37ed1aa5ceff/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534303336646262656162363261633631353030303134332f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/54036dbbeab62ac615000143)

This component comes with a lot of [examples](https://github.com/bazzline/php_component_code_generator/tree/master/example) as well as default [factories](https://github.com/bazzline/php_component_code_generator/tree/master/source/Net/Bazzline/Component/CodeGenerator/Factory).

Take a look on [ohloh.net](https://www.ohloh.net/p/php_component_code_generator).

The current change log can be found [here](https://github.com/bazzline/php_component_code_generator/blob/master/CHANGELOG.md).

Install
=======

[](#install)

By Hand
-------

[](#by-hand)

```
mkdir -p vendor/net_bazzline/php_component_code_generator
cd vendor/net_bazzline/php_component_code_generator
git clone https://github.com/bazzline/php_component_code_generator .

```

With [Packagist](https://packagist.org/packages/net_bazzline/php_component_code_generator)
------------------------------------------------------------------------------------------

[](#with-packagist)

```
composer require net_bazzline/php_component_code_generator:dev-master

```

Benefits
========

[](#benefits)

- no "new" inside classes ...
- independent and configurable indention
- no static calls
- shipped with examples and factories
- covered with unittests
- open source
- automatic phpdoc generation

Optimization Potential
======================

[](#optimization-potential)

- ... but "clone"
- currently not widely used
- no code review by other developers so far
- still open todo's

API
===

[](#api)

[API](http://www.bazzline.net/57b93db867f58f6bf2982833765721032a5ea22b/index.html) is available at [bazzline.net](http://www.bazzline.net).

Inspired By
===========

[](#inspired-by)

- [php-generator](https://github.com/nette/php-generator)
- [simple-php-code-gen](https://github.com/gotohr/simple-php-code-gen)
- [cg-library](https://github.com/schmittjoh/cg-library)
- [sensio generator bundle](https://github.com/sensiolabs/SensioGeneratorBundle)
- [php-ide-stub-generator](https://github.com/racztiborzoltan/php-ide-stub-generator)
- [php-token-reflection](https://github.com/Andrewsville/PHP-Token-Reflection)
- [code-generator](https://github.com/Speicher210/CodeGenerator)

Final Words
===========

[](#final-words)

Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. [Donate something](https://gratipay.com/~stevleibelt) if you love it :-\].

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

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

Recently: every ~176 days

Total

18

Last Release

3218d ago

Major Versions

0.0.3 → 1.0.02014-07-11

PHP version history (2 changes)0.0.1PHP &gt;=5.3.3

1.2.1PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/58451b041f6f5a38c7e62762c96d01f5e2bcac30e322707fe4760a82bccb6856?d=identicon)[artodeto](/maintainers/artodeto)

---

Top Contributors

[![stevleibelt](https://avatars.githubusercontent.com/u/2287220?v=4)](https://github.com/stevleibelt "stevleibelt (111 commits)")

---

Tags

psrphpphpdocgeneratorbazzlinelgplfree as in freedomPSR-4PHP7php56php code generator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/net-bazzline-php-component-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/net-bazzline-php-component-code-generator/health.svg)](https://phpackages.com/packages/net-bazzline-php-component-code-generator)
```

###  Alternatives

[icamys/php-sitemap-generator

Simple PHP sitemap generator.

175342.8k6](/packages/icamys-php-sitemap-generator)

PHPackages © 2026

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