Weave Code
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

Php My Migration Laravel Package

adly-nady/php-my-migration

Laravel package to generate migrations (and optional Eloquent models) from an existing MySQL database. Detects column types, keys, indexes, foreign keys, timestamps/soft deletes; supports batch processing, custom paths, overwrite, and connections.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Database Refactoring & Modernization: Accelerates migration of legacy MySQL databases to Laravel’s Eloquent ORM, reducing manual effort in schema-to-migration conversion.
  • DevOps Efficiency: Enables faster onboarding of legacy systems into Laravel projects by automating migration file generation, cutting weeks of manual work.
  • Schema Consistency: Ensures alignment between existing database tables and Laravel’s migration files, reducing runtime errors from mismatched schemas.
  • Build vs. Buy: Justifies avoiding custom scripts or third-party tools for migration generation, especially for teams already using Laravel.
  • Roadmap Prioritization: Critical for teams adopting Laravel for greenfield projects or migrating from raw MySQL to a framework-agnostic, version-controlled schema.

When to Consider This Package

  • Legacy MySQL-to-Laravel Migration: Ideal when transitioning from raw MySQL to Laravel’s Eloquent ORM and needing to backfill missing migration files.
  • Schema Synchronization: Useful when existing tables lack migration files but must align with Laravel’s conventions (e.g., for CI/CD pipelines or team collaboration).
  • Small-to-Medium Projects: Best suited for projects with <500 tables or moderate complexity; may require manual tweaks for highly customized schemas.
  • Not for:
    • New database projects (no existing tables to convert).
    • Non-Laravel PHP projects (focuses on Laravel’s migration syntax).
    • Complex migrations requiring custom logic (e.g., composite keys, triggers).
    • Teams needing real-time schema changes (this is a one-time sync tool).

How to Pitch It (Stakeholders)

For Executives: "This package automates the tedious task of converting legacy MySQL tables into Laravel migration files—saving our team weeks of manual work and reducing schema-related bugs. By standardizing our database structure, we’ll accelerate development velocity and improve collaboration, especially for teams migrating from raw MySQL to Laravel. The low-maintenance solution (last updated May 2025) aligns with our tech stack and cuts infrastructure costs associated with custom scripts."

For Engineering: *"php-my-migration handles the drudgery of reverse-engineering MySQL tables into Laravel migrations. It’s a lightweight CLI tool that:

  • Generates migration files for untracked tables.
  • Syncs existing files to match the database schema.
  • Reduces merge conflicts by ensuring consistency early. Perfect for onboarding legacy systems or auditing schemas. Downside: Limited to basic column types (add manual overrides for edge cases)."
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.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle