PHPackages                             gsylvestre/php-models-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. [Database &amp; ORM](/categories/database)
4. /
5. gsylvestre/php-models-generator

ActiveProject[Database &amp; ORM](/categories/database)

gsylvestre/php-models-generator
===============================

Painlessly generates PHP models/entities from existing MySQL database

v0.7(6y ago)939MITPHP

Since Dec 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gsylvestre/php-models-generator)[ Packagist](https://packagist.org/packages/gsylvestre/php-models-generator)[ RSS](/packages/gsylvestre-php-models-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (8)Used By (0)

PHP models generator
====================

[](#php-models-generator)

### Painlessly generates PHP models/entities from existing MySQL database!

[](#painlessly-generates-php-modelsentities-from-existing-mysql-database)

Run a simple command and you'll get:

- one pretty model class for each table in your db
- automatic singular class names
- automatic camelCasing
- private props with lightweight getters and setters

How to install
--------------

[](#how-to-install)

In your web folder run:

```
composer create-project gsylvestre/php-models-generator

```

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

[](#how-to-use)

Inside your new `php-models-generator` directory, execute:

```
php generate models

```

and follow the wizard for setting up database connection...

*If you need to change database connection infos, edit the generated `config.ini` file.*

Enjoy and big up to Y!

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

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

Total

7

Last Release

2446d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3425730?v=4)[Guillaume Sylvestre](/maintainers/gsylvestre)[@gsylvestre](https://github.com/gsylvestre)

---

Top Contributors

[![gsylvestre](https://avatars.githubusercontent.com/u/3425730?v=4)](https://github.com/gsylvestre "gsylvestre (14 commits)")

### Embed Badge

![Health badge](/badges/gsylvestre-php-models-generator/health.svg)

```
[![Health](https://phpackages.com/badges/gsylvestre-php-models-generator/health.svg)](https://phpackages.com/packages/gsylvestre-php-models-generator)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.4k](/packages/laravel-framework)[sylius/sylius

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

8.5k6.0M777](/packages/sylius-sylius)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136411.0k14](/packages/rector-rector-src)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sulu/sulu

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

1.3k1.4M235](/packages/sulu-sulu)

PHPackages © 2026

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