# kitloong/laravel-migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.

Repository: https://github.com/kitloong/laravel-migrations-generator
Canonical: https://ross.abutalabs.com/products/laravel-migrations-generator
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, existing-database, lumen, database-migrations, migrations
Last push: 2026-05-10T15:11:11+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 81, release rhythm 71, longevity 100
- inputs: {"age_days": 2359, "days_push": 115, "days_rel": 115, "gap_med": 56, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2864, forks 294 (observed 2026-08-28T04:07:26.392200+00:00)

## What it is
A Laravel/Lumen package that generates Laravel migration files from an existing database schema, including tables, columns, indexes, and foreign keys. It is installed via Composer and run as an artisan command.

## Use cases
- generate Laravel migrations from an existing database
- reverse-engineer a legacy database schema into migration files
- convert a MySQL or PostgreSQL database into Laravel migrations
- bootstrap a Laravel project from an existing database
- squash database schema into a single migration file
- generate migrations with indexes and foreign keys

## When to choose
- you have an existing database and want to adopt Laravel's migration system
- you need migration files including indexes and foreign key constraints
- you use any of Laravel's first-party databases (MySQL, MariaDB, PostgreSQL, SQL Server, SQLite)
- you want to squash many tables into a single migration file

## When to avoid
- you are starting from scratch and writing migrations by hand
- you are not using Laravel or Lumen
- you need migrations for databases Laravel does not support

## Facets
- artifact type: library
- maturity: active
- function: database, cli
- domain: databases, web-development, developer-tools
- platform: php, cli, cross-platform
- tags: laravel, lumen, migrations, schema-reverse-engineering, artisan-command, eloquent, code-generation

## Member repositories
- kitloong/laravel-migrations-generator (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:26.392200+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:15.014120+00:00, confidence not recorded.
  - readme: https://github.com/kitloong/laravel-migrations-generator (fetched 2026-08-28T04:07:26.392200+00:00, sha 67eb9d57dfb3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
