PHPackages                             modul-is/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. modul-is/generator

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

modul-is/generator
==================

Generates entities, repositories, presenters, templates, dials, forms and grids from DB table to given Module

v1.0.0(6y ago)44.8k1MITPHP

Since Apr 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/modul-is/generator)[ Packagist](https://packagist.org/packages/modul-is/generator)[ Docs](https://github.com/modul-is/generator)[ RSS](/packages/modul-is-generator/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Generator
=========

[](#generator)

Simple command line interface for generating php classes from mysql table

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

[](#installation)

Install via composer.json, do not forget to add composer handle to project's composer.json

```
"scripts":
{
    "post-install-cmd": [
        "ModulIS\\Generator\\ComposerHandler::copy"
    ],
    "post-update-cmd": [
        "ModulIS\\Generator\\ComposerHandler::copy"
    ]
}

```

Setup
-----

[](#setup)

Nothing else to setup, except `local.neon` - used as source for database

How to use
----------

[](#how-to-use)

Once you install extension, open `vendor\bin` directory in cmd(powershell requires `.\` before command -&gt; `.\generate`) There is no need to register factories or repository, all is done automatically

```
generate  [--module=] [--type=] [--db=]

```

### generate

[](#generate)

`generate` =&gt; command to start generating

### mysql\_table

[](#mysql_table)

`mysql_table` =&gt; table name which will be used for php classes generating

- if table has prefix, classes will also have prefix e.g. ins\_insurance will generate InsInsuranceEntity etc

### module\_name

[](#module_name)

`module_name` =&gt; name under which module new classes will be generated to, default is `AdminModule`

- module\_name has to be in `PascalCaseLikeThis`
- module\_name doest not have to contain `Module` - automatically added if missing

### type

[](#type)

`type` =&gt; decides which files will be generated, default is `all`

- options
    - all (the whole module)
    - entity
    - repository
    - form
    - grid
    - presenter
    - template

### database

[](#database)

`database` =&gt; decides which database from `local.neon` will be used

- if your project only uses one database or uses multiple but you want to use `default`, it will be selected automatically and this parameter is not needed

What is generated
-----------------

[](#what-is-generated)

### Entity

[](#entity)

Namespace, class, properties, functions to return new datetime object instead of string for date and datetime columns

### Repository

[](#repository)

Namespace, class, table and entity property, overridden getBy and getByID

### Form

[](#form)

Namespace, class, repository, properties, attached(with checks), form, formSuccess

### Grid

[](#grid)

Namespace, class, grid, handles, editForm

### Presenter

[](#presenter)

Factory inject, createComponent function, actionFormEdit

### Template

[](#template)

Latte template with control component

### Dials

[](#dials)

Namespace, class, constants, functions - constants and translation needs to be changed

- Only generated from enum and char columns

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

2212d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10499130?v=4)[Pavel Kravčík](/maintainers/kravcik)[@kravcik](https://github.com/kravcik)

---

Top Contributors

[![kravcik](https://avatars.githubusercontent.com/u/10499130?v=4)](https://github.com/kravcik "kravcik (1 commits)")[![spulakk](https://avatars.githubusercontent.com/u/34043062?v=4)](https://github.com/spulakk "spulakk (1 commits)")

---

Tags

phpnettegenerator

### Embed Badge

![Health badge](/badges/modul-is-generator/health.svg)

```
[![Health](https://phpackages.com/badges/modul-is-generator/health.svg)](https://phpackages.com/packages/modul-is-generator)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M576](/packages/nette-php-generator)[genericmilk/docudoodle

Generate documentation for your Laravel application using OpenAI

15120.5k](/packages/genericmilk-docudoodle)[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1393.7k](/packages/tomloprod-radiance)

PHPackages © 2026

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