comunedifirenze/doctrine2-exporter
Exporter that converts MySQL Workbench .mwb models into Doctrine 2 schemas. Install via Composer and run the CLI to generate YAML schema or annotation-based entities, with options for namespaces, repositories, relations, nullability, cascades, and more.
.mwb) into Doctrine 2 schema definitions (YAML/Annotation), reducing manual ORM configuration time by ~70% for teams migrating from MySQL Workbench to Symfony/Laravel.bundleNamespace, entityNamespace) and inheritance patterns (STI via generateExtendableEntity), aligning with Symfony best practices.generateEntityPopulate) supports validation layers in Laravel (via custom traits), reducing duplication between ORM and validation logic.For Executives: "This tool cuts database integration time by automating 80% of Doctrine ORM setup from MySQL Workbench models, accelerating feature delivery for our [Symfony/Laravel] projects. For example, migrating a 50-table schema from Workbench to Doctrine—normally a 2-week task—takes under 2 hours with this exporter. It’s a low-risk, high-reward investment to standardize our data layer and reduce technical debt."
For Engineering:
*"This CLI tool converts .mwb files into Doctrine YAML/annotations with zero manual work for:
populate() methods for Laravel).
It’s lightweight (MIT-licensed, no dependencies beyond Doctrine) and extensible—just add comments to your Workbench model to tweak generation (e.g., {d:unidirectional}true). Perfect for onboarding or migrating legacy schemas."*For Developers: *"Run this once:
composer require --dev mysql-workbench-schema-exporter/doctrine2-exporter
vendor/bin/mysql-workbench-schema-export path/to/model.mwb --format=annotation --bundleNamespace=App\\Entity
Then profit:
{d:cascade}persist in Workbench comments to skip manual @ORM\Cascade annotations."*How can I help you explore Laravel packages today?