PHPackages                             davidepastore/paris-model-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. davidepastore/paris-model-generator

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

davidepastore/paris-model-generator
===================================

Paris model generator from database

v0.1.0(11y ago)151MITPHP

Since Feb 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/DavidePastore/paris-model-generator)[ Packagist](https://packagist.org/packages/davidepastore/paris-model-generator)[ RSS](/packages/davidepastore-paris-model-generator/feed)WikiDiscussions master Synced today

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

paris-model-generator
=====================

[](#paris-model-generator)

[Paris](https://github.com/j4mie/paris) model generator from database.

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

[](#installation)

### Using command line

[](#using-command-line)

```
$ composer require davidepastore/paris-model-generator:0.1.*
```

### Editing composer.json

[](#editing-composerjson)

Require this generator:

```
"require": {
  "davidepastore/paris-model-generator": "0.1.*"
}
```

Setup
-----

[](#setup)

You have to setup your application to be sure that the generated classes will be in the right place and with the right namespace. **paris-model-generator** uses `composer.json` `extra` property to put its configuration:

```
"extra": {
  "paris-model-generator": {
    "namespace": "VendorName\\MyProject\\Models",
    "destination-folder": "src\\"
	}
}
```

### namespace

[](#namespace)

It is the namespace in which all classes will be generated. It will be also used to create the folder structure to be PSR-4 compliant.

### destination-folder

[](#destination-folder)

It is the folder in which all files (and folder structure) will be generated.

Usage
-----

[](#usage)

Be sure to be in the base directory of the project (where you have your `composer.json` file) and run:

```
$ vendor/bin/paris-generator models [--force]
```

The generator will ask you information about the database, to be sure to connect to it and to retrieve the list of tables. The list of the supported drivers could be found [here](http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connection-details).

### force option

[](#force-option)

The `--force` option will not ask you confirmation to overwrite existing files.

Include generated files
-----------------------

[](#include-generated-files)

You have two chances:

- psr-4 autoload;
- classmap autoload.

### PSR-4 autoload

[](#psr-4-autoload)

If your namespace property is set you can use `psr-4` composer autoload:

```
"autoload" : {
  "psr-4" : {
    "" : "your-destination-folder/"
  }
}
```

Don't forget to set `Model::$auto_prefix_models` to be sure that your model is recognized properly when you use `Model::factory` method:

```
Model::$auto_prefix_models = 'YourAmazing\\Namespace\\';
```

### Classmap autoload

[](#classmap-autoload)

If your namespace property is empty or not set, you have to autoload using:

```
"autoload": {
  "classmap" : [
    "your-destination-folder/"
  ]
}
```

Issues
------

[](#issues)

If you have issues, just open one [here](https://github.com/DavidePastore/paris-model-generator/issues).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

Unknown

Total

1

Last Release

4158d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1949364?v=4)[Davide Pastore](/maintainers/DavidePastore)[@DavidePastore](https://github.com/DavidePastore)

---

Top Contributors

[![DavidePastore](https://avatars.githubusercontent.com/u/1949364?v=4)](https://github.com/DavidePastore "DavidePastore (6 commits)")

---

Tags

databasemodelparisphpgeneratormodelparis

### Embed Badge

![Health badge](/badges/davidepastore-paris-model-generator/health.svg)

```
[![Health](https://phpackages.com/badges/davidepastore-paris-model-generator/health.svg)](https://phpackages.com/packages/davidepastore-paris-model-generator)
```

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[open-dxp/opendxp

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

9421.6k61](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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