Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Doctrine2 Exporter Laravel Package

mysql-workbench-schema-exporter/doctrine2-exporter

Plugin for MySQL Workbench Schema Exporter that converts .mwb models into Doctrine 2 entity classes. Generate PHP entities, mappings, and relations directly from your MySQL Workbench diagrams, keeping your database schema and code in sync.

Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: This package is a schema-generation utility, not a Laravel runtime component. It fits best as a development-time bridge from MySQL Workbench .mwb models to Doctrine 2 entity classes. In a standard Laravel/Eloquent application, it is adjacent rather than native: useful for schema-first discovery, legacy database modeling, or generating a starting domain model, but not a replacement for Laravel’s Eloquent conventions.
  • Integration feasibility: Feasible as an isolated CLI/dev dependency if the package supports the team’s PHP, Doctrine, and MySQL Workbench versions. The main feasibility gate is output quality: generated entities must handle relations, indexes, nullability, enums/custom types, naming conventions, and Doctrine annotations/attributes in a way the target application can accept. Because the repository is unknown and stars are low, expect a hands-on validation spike rather than assuming drop-in compatibility.
  • Technical risk: Medium. Risks include package abandonment, stale Doctrine 2 assumptions, PHP version constraints, MWB format drift, weak Laravel integration, and generated-code churn. MIT licensing reduces legal risk. Low stars and an opportunity score of 2.65 suggest limited ecosystem validation, so treat the package as a tactical scaffolding tool, not a strategic platform dependency.
  • Key questions: Is the package maintained and compatible with current PHP/Doctrine versions? Does it support Doctrine attributes or only legacy annotations? How does it map relations, composite keys, indexes, enums, and custom column types? Can generated output be customized without patching the package? Is it safe to vendor or fork if abandoned? Does the team have Doctrine expertise, or is the application Eloquent-first?

Integration Approach

  • Stack fit: Best fit is a Laravel codebase that already uses Doctrine 2 for part of its domain, or a migration effort where MySQL Workbench is the source of truth. For Eloquent-only Laravel apps, use the exporter only to generate reference models or migration scaffolding, then translate into Eloquent models, migrations, factories, and policies. Avoid introducing Doctrine solely to satisfy the exporter.
  • Migration path: Run a controlled pilot against a non-critical schema. Generate entities into an isolated namespace, compare output to expected domain behavior, and manually adapt naming, relationships, casts, and validation. If successful, adopt as a schema-bootstrap workflow: Workbench model → generated Doctrine entities → reviewed application code. If not, fall back to manual Eloquent modeling or a custom MWB parser.
  • Compatibility: Validate PHP version, Composer constraints, Doctrine ORM version, annotation vs attribute support, and MySQL Workbench file compatibility before committing. Keep the package in require-dev or a tooling repository, not in production runtime dependencies. Pin versions and store generated output in version control so upgrades are deliberate.
  • Sequencing: First, inventory target schemas and identify whether Doctrine or Eloquent is the real destination. Second, run a time-boxed spike on one schema and measure generation quality. Third, define a review checklist for generated entities and a regeneration policy. Fourth, integrate into developer tooling/CI only if the spike proves repeatable. Fifth, decide whether to maintain, fork, or replace the package based on long-term ownership cost.

Operational Impact

  • Maintenance: Low runtime maintenance if used as a one-off generator; higher maintenance if retained as a repeatable schema pipeline. Generated code must be reviewed and owned by the application team. The package itself may require patching for newer PHP/Doctrine versions, especially given its niche status and low star count.
  • Support: Community support is likely thin. Expect limited documentation, few maintained examples, and reliance on internal expertise. A TPM should plan for an internal owner, a fork/vendor strategy, and a documented exit path rather than assuming upstream responsiveness.
  • Scaling: Scaling impact is minimal because generation happens in development or CI, not in request paths. The operational scaling concern is schema complexity: larger Workbench models increase review burden, generation edge cases, and regeneration conflicts. Runtime scaling remains an application/Doctrine concern, not this package’s concern.
  • Failure modes: Incompatible MWB files, stale Doctrine mappings, incorrect relation/cascade generation, unsupported column types, PHP/Doctrine version breaks, autoload conflicts, and silent overwrites of customized generated code. Mitigate with isolated output directories, diffs in code review, pinned dependencies, and a no-regeneration-without-review rule.
  • Ramp-up: Low for developers familiar with Doctrine and MySQL Workbench; moderate for Eloquent-only teams because they must learn Doctrine mapping concepts and then translate output. Budget for a spike, a review checklist, and documentation of when to use the exporter versus hand-written Laravel migrations and models.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core