# Xethron/migrations-generator

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

Repository: https://github.com/Xethron/migrations-generator
Canonical: https://ross.abutalabs.com/products/migrations-generator
Language: PHP
License: MIT
License Family: permissive
Topics: laravel-migration, php, existing-database
Last push: 2023-02-17T05:44:18+00:00

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

## Adoption (not part of the score)
Stars 3320, forks 492 (observed 2026-08-28T04:07:56.241473+00:00)

## What it is
A Laravel package that generates Laravel migration files from an existing database schema, including indexes and foreign keys. It is installed via Composer and run through an artisan command (migrate:generate).

## Use cases
- generate laravel migrations from existing database
- reverse engineer database schema into migrations
- convert legacy database to laravel migrations
- create migration files including indexes and foreign keys
- bootstrap a laravel app from an existing schema

## When to choose
- you have an existing database and want Laravel migration files for it
- you need to migrate a legacy schema into a Laravel project
- you want indexes and foreign keys captured in generated migrations

## When to avoid
- you are starting a fresh Laravel project with no existing database
- you need support for the latest Laravel versions or active maintenance
- you use a framework other than Laravel

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

## Member repositories
- Xethron/migrations-generator (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.241473+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-29T18:41:50.702329+00:00, confidence not recorded.
  - readme: https://github.com/Xethron/migrations-generator (fetched 2026-08-28T04:07:56.241473+00:00, sha b83b4bc6bb15)
- Data as of 2026-08-30T08:39:29.467469+00:00.
