PHPackages                             hydrax-skarrag/mwbs-exporter-symfony-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. [Database &amp; ORM](/categories/database)
4. /
5. hydrax-skarrag/mwbs-exporter-symfony-bundle

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

hydrax-skarrag/mwbs-exporter-symfony-bundle
===========================================

Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"

273PHP

Since Jan 18Pushed 12y ago2 watchersCompare

[ Source](https://github.com/HydraxSkarrag/mwbs-exporter-symfony-bundle)[ Packagist](https://packagist.org/packages/hydrax-skarrag/mwbs-exporter-symfony-bundle)[ RSS](/packages/hydrax-skarrag-mwbs-exporter-symfony-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

README
======

[](#readme)

Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"

Setup
-----

[](#setup)

Workbench files are saved in the Resources/workbench/\*.mwb directory inside your bundle.

Configuration
=============

[](#configuration)

Single schema
-------------

[](#single-schema)

`schema_name` here refers to name of the Workbench file

```
mwbs_exporter:
    schema:
        schema_name:
            bundle: YourBundle

```

Multiple schemas
----------------

[](#multiple-schemas)

`schema_name` here refers to name of the Workbench file

```
mysql_workbench_schema_exporter:
    schema:
        schema1_name:
            bundle: YourBundle
        schema2_name:
            bundle: YourBundle
        schema3_name:
            bundle: YourBundle
            params:
                bundleNamespace: "YourBundle"
                repositoryNamespace: "YourBundle\\Entity"
                entityNamespace: ""
                useAnnotationPrefix: "ORM\\"
                generateBaseClasses: true
                useAutomaticRepository: true
                skipPluralNameChecking: false
                enhanceManyToManyDetection: true
                filename: "%%entity%%.%%extension%%"
                backupExistingFile: false
                indentation: 4
                quoteIdentifier: false

```

Execution
=========

[](#execution)

To process the files execute the command in the terminal:

```
app/console mwbs:export-entities

```

Exporter Options
----------------

[](#exporter-options)

### Exporter options

[](#exporter-options-1)

- `bundleNamespace`

    Name of your Bundlenamespace
- `repositoryNamespace`

    Name of your repositoryNamespace
- `entityNamespace`

    Name of your entityNamespace
- `useAnnotationPrefix`

    Doctrine annotation prefix. Default is `ORM\`.
- `generateBaseClasses`

    Generate Entity Base Classes
- `useAutomaticRepository`

    See above.
- `skipPluralNameChecking`

    Skip checking the plural name of model and leave as is, useful for non English table names. Default is `false`.
- `enhanceManyToManyDetection`

    If enabled, many to many relations between tables will be added to generated code. Default is `true`.
- `filename`

    The output filename format, use the following tag `%schema%`, `%table%`, `%entity%`, and `%extension%` to allow the filename to be replaced with contextual data. Default is `%entity%.%extension%`.
- `backupExistingFile`

    If target already exists create a backup before replacing the content. Default is `true`.
- `indentation`

    The indentation size for generated code.
- `quoteIdentifier`

    If this option is enabled, all table names and column names will be quoted using backtick (```). Usefull when the table name or column name contains reserved word. Default is `false`.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/51b544faed1ff9842f14daa233d39e3cce902cb11890b36225c4d4e5bd1783f1?d=identicon)[HydraxSkarrag](/maintainers/HydraxSkarrag)

---

Top Contributors

[![HydraxSkarrag](https://avatars.githubusercontent.com/u/5442838?v=4)](https://github.com/HydraxSkarrag "HydraxSkarrag (13 commits)")

### Embed Badge

![Health badge](/badges/hydrax-skarrag-mwbs-exporter-symfony-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/hydrax-skarrag-mwbs-exporter-symfony-bundle/health.svg)](https://phpackages.com/packages/hydrax-skarrag-mwbs-exporter-symfony-bundle)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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