PHPackages                             idimensionz/entity-generator-bundle - 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. idimensionz/entity-generator-bundle

ActiveLibrary

idimensionz/entity-generator-bundle
===================================

v1.3.1(6y ago)16.8k[1 PRs](https://github.com/idimensionz/entity-generator-bundle/pulls)MITPHPPHP ^7.4

Since Aug 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/idimensionz/entity-generator-bundle)[ Packagist](https://packagist.org/packages/idimensionz/entity-generator-bundle)[ RSS](/packages/idimensionz-entity-generator-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (24)Versions (16)Used By (0)

iDimensionz Doctrine Entity Generator
=====================================

[](#idimensionz-doctrine-entity-generator)

[![Codacy Badge](https://camo.githubusercontent.com/69a39047a3c5d9d812c67d482ca9665f3144e4140bce36cd05921ac2a714c88d/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6265306633633631316331353436353061363936636539663938386164376337)](https://app.codacy.com/app/idimensionz/entity-generator-bundle?utm_source=github.com&utm_medium=referral&utm_content=idimensionz/entity-generator-bundle&utm_campaign=Badge_Grade_Dashboard)

Symfony service and console command that does a simple reverse engineer of MySQL tables into entity classes.

Join the entity-generator channel on [iDimensionz's Community Slack](https://join.slack.com/t/idimensionz-community/shared_invite/enQtNDgyNTI2NTk5MTQwLWJhZTg0MGZiYzU4MWY0YzdmNzViZGNiYTY4MjU1YWYwOGFjYzM4ZGQ0MzFkZDEyYjQ1OTVmNDAxYmQ0Nzk5YjY) to ask questions, share tips and meet others using this software.

Configuration
-------------

[](#configuration)

- Add the following to registerBundles() in your kernel:

```
    new iDimensionz\EntityGeneratorBundle\EntityGeneratorBundle(),

```

- Add the following to services.yml:

```
     idimensionz.mysql_column_definition_provider:
         class: iDimensionz\EntityGeneratorBundle\Provider\MysqlColumnDefinitionProvider

     idimensionz.entity_creator_service:
         class: iDimensionz\EntityGeneratorBundle\Service\EntityCreatorService
         arguments: ["@idimensionz.mysql_column_definition_provider", "@twig"]

     idimensionz-entity-generator-command:
         class: iDimensionz\EntityGeneratorBundle\Command\GenerateEntityCommand
         arguments: ["@idimensionz.entity_creator_service", ~]

```

- Add "%kernel.project\_dir%/vendor/idimensionz/entity-generator-bundle/templates" to your twig.paths in config.yml.
- Profit!

How to Run the Console Command
------------------------------

[](#how-to-run-the-console-command)

The console command take 3 parameters:

- schema-name
- table-name
- entity-class-name

Here's an example of how you would create an entity class for the COLUMNS table in the MySQL information\_schema database:

```
bin/console idimensionz:generate:entity --schema-name=information_schema --table-name=PROFILING --entity-class-name=Profiling

```

The command will output the class code to the screen where you can copy and paste it into your favorite IDE.

Note: If using PhpStorm, you can easily generate getters and setters with PHP 7 parameter and return value type-hinting as well as doc blocks.

To-Do
-----

[](#to-do)

We'd like to implement the following improvements. Feel free to submit a PR if you want to help out with these.

1. Add twig blocks to the template to make it easier to customize certain sections.
2. Add the ability to specify a bundle where the entity file would be created.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 90.7% 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 ~51 days

Recently: every ~59 days

Total

13

Last Release

2195d ago

PHP version history (2 changes)v1.0.1PHP ^7.1.3

v1.2.6PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/75031cc08726160448843e9ecf682ee70f21e1232ffa9f7c06a56e02b5a74d0e?d=identicon)[idimensionz](/maintainers/idimensionz)

---

Top Contributors

[![idimensionz](https://avatars.githubusercontent.com/u/1318604?v=4)](https://github.com/idimensionz "idimensionz (39 commits)")[![jim-simpletire](https://avatars.githubusercontent.com/u/33232799?v=4)](https://github.com/jim-simpletire "jim-simpletire (2 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/idimensionz-entity-generator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/idimensionz-entity-generator-bundle/health.svg)](https://phpackages.com/packages/idimensionz-entity-generator-bundle)
```

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M151](/packages/sulu-sulu)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)

PHPackages © 2026

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