explaingit

mungell/mysql-workbench-schema-exporter

Analysis updated 2026-07-21 · repo last pushed 2012-01-12

1PHPAudience · developerComplexity · 2/5DormantSetup · moderate

TLDR

Reads visual database models from MySQL Workbench and automatically generates PHP framework code files like Doctrine, Propel, CakePHP, and Zend entities from them.

Mindmap

mindmap
  root((repo))
    What it does
      Reads mwb files
      Generates PHP code
      Supports zip export
    Tech stack
      PHP 5.3
      Doctrine
      Propel
      CakePHP
    Use cases
      Generate entity classes
      Scaffold new projects
      Automate repetitive code
    Audience
      PHP developers
      MySQL Workbench users
    Limitations
      Experimental only
      Not for production

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate Doctrine entity classes from a visual database diagram in MySQL Workbench.

USE CASE 2

Scaffold Propel model files for a new PHP project using your existing .mwb design.

USE CASE 3

Export CakePHP or Zend framework code from a database model without manually writing repetitive boilerplate.

USE CASE 4

Fine-tune generated code output using custom options and special formatting hints embedded in diagram comments.

What is it built with?

PHPDoctrinePropelCakePHPZend

How does it compare?

mungell/mysql-workbench-schema-exporteragentpietrucha/ks_affiliationakarshsatija/php-whois
Stars111
LanguagePHPPHPPHP
Last pushed2012-01-122014-02-06
MaintenanceDormantDormant
Setup difficultymoderatemoderateeasy
Complexity2/53/52/5
Audiencedeveloperdeveloperpm founder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires PHP 5.3, an older version of the language that may need a legacy environment or container to run.

In plain English

mysql-workbench-schema-exporter is a tool that takes a database model you've designed visually in MySQL Workbench and automatically generates the code files your application needs to work with that database. Instead of manually writing repetitive code to define your database tables and relationships in your project, this reads your visual model and writes that scaffolding for you. MySQL Workbench is a popular visual tool for designing database structures, saving those designs as .mwb files. This project reads those files and translates the visual diagram into text-based code files for several PHP frameworks, including Doctrine, Propel, CakePHP, and Zend. At a high level, you point a short script at your model file, choose which framework format you need, and it outputs the corresponding code. You can also fine-tune the results using specific options, like adjusting how code is indented or setting custom names for different parts of your application. The primary audience is a developer or team building a PHP application who already uses MySQL Workbench to plan their database. For example, if you are starting a new project and have drawn out your tables for users, orders, and products, you could use this to instantly generate the matching Doctrine entity classes. You can even embed special formatting hints directly into the comments of your visual diagram to trigger advanced framework features, saving you from writing that configuration by hand later. The project itself notes that it is experimental and only a proof of concept, meaning it is not intended for critical, live production environments. It was built with PHP and requires a relatively older version of the language (PHP 5.3) to run. While it offers handy features like exporting the generated files directly into a zip archive, its proof-of-concept status suggests it may lack the polish or robustness of a fully supported application.

Copy-paste prompts

Prompt 1
I have a MySQL Workbench .mwb file with tables for users, orders, and products. Help me set up mysql-workbench-schema-exporter to generate Doctrine entity classes from it using PHP 5.3.
Prompt 2
Show me how to use mysql-workbench-schema-exporter to export Propel model files from my .mwb diagram and save the output as a zip archive.
Prompt 3
How do I embed special formatting hints in the comments of my MySQL Workbench diagram to trigger advanced Doctrine or Propel features when using mysql-workbench-schema-exporter?
Prompt 4
I want to generate CakePHP schema files from my MySQL Workbench model. Walk me through configuring mysql-workbench-schema-exporter with custom indentation and naming options.

Frequently asked questions

What is mysql-workbench-schema-exporter?

Reads visual database models from MySQL Workbench and automatically generates PHP framework code files like Doctrine, Propel, CakePHP, and Zend entities from them.

What language is mysql-workbench-schema-exporter written in?

Mainly PHP. The stack also includes PHP, Doctrine, Propel.

Is mysql-workbench-schema-exporter actively maintained?

Dormant — no commits in 2+ years (last push 2012-01-12).

How hard is mysql-workbench-schema-exporter to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is mysql-workbench-schema-exporter for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.