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

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

jonathanguo/code-generator
==========================

Code Generator

v1.0.4(6y ago)029.3k↓45%1MITPHPCI passing

Since Jan 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/JonathanGuo/code-generator)[ Packagist](https://packagist.org/packages/jonathanguo/code-generator)[ RSS](/packages/jonathanguo-code-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (1)

Why I created another generator?
--------------------------------

[](#why-i-created-another-generator)

This package is a shameless copy of [krlove/code-generator](https://github.com/krlove/code-generator). It does the job but looks like the author is not actively maintaining the package any longer. When I cloned the repo on 20th December 2018, there is an issue and two PRs are not responded since 2017.

Also another reason is I need the code generator to generate some code with custom styles. The requirements might not be general cares. So I decided to duplicate the repo rather than fork it.

Code generator
==============

[](#code-generator)

Code generator is a PHP tool that provides an interface for generating code. Currently only PHP class generation is supported.

Installation
------------

[](#installation)

Require the package using composer `composer require jonathanguo/code-generator --dev`. Code generator is usually intended to be installed only in dev environment. Installation in prod environment is not recommended.

Usage example
-------------

[](#usage-example)

```
