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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

2347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1a4edcccd8fb30a00ac08fe1527aa1e19de3ec06b5fd9d16839e8e6da6dd876?d=identicon)[gsylvestre](/maintainers/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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M188](/packages/spatie-laravel-backup)[api-platform/schema-generator

Various tools to generate a data model based on Schema.org vocables

4714.2M7](/packages/api-platform-schema-generator)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)[psx/sql

Generate type-safe PHP classes from your database

1773.4k4](/packages/psx-sql)

PHPackages © 2026

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