PHPackages                             josh-taylor/migrations-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. josh-taylor/migrations-generator

AbandonedLibrary[Database &amp; ORM](/categories/database)

josh-taylor/migrations-generator
================================

Migrations generator for Laravel.

0.1.0(10y ago)3113[3 issues](https://github.com/josh-taylor/migrations-generator/issues)MITPHP

Since Mar 6Pushed 10y ago2 watchersCompare

[ Source](https://github.com/josh-taylor/migrations-generator)[ Packagist](https://packagist.org/packages/josh-taylor/migrations-generator)[ RSS](/packages/josh-taylor-migrations-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Migrations Generator [![Build Status](https://camo.githubusercontent.com/3b5fc20900790983ffe10514beea629eb476320d6dadcb3e8cebbd839709b2ba/68747470733a2f2f7472617669732d63692e6f72672f6a6f73682d7461796c6f722f6d6967726174696f6e732d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/josh-taylor/migrations-generator)
====================================================================================================================================================================================================================================================================================================================================================

[](#migrations-generator-)

Generate migrations from an existing database. Ideal for use when migrating an app to Laravel.

Please note, this is still really a work in progress. Worth noting the [things left to do below](https://github.com/josh-taylor/migrations-generator/#still-left-to-do).

Installation
------------

[](#installation)

### Step 1: Composer

[](#step-1-composer)

From the command line run:

```
composer require josh-taylor/migrations-generator --dev

```

### Step 2: Service Provider

[](#step-2-service-provider)

For your Laravel app, you will only want these commands available during development, open `app/Providers\AppServiceProvider.php` and add in to the `register()` method:

```
if ($this->app->environment() == 'local') {
  $this->app->register('JoshTaylor\MigrationsGenerator\MigrationsGeneratorServiceProvider');
}
```

Usage
-----

[](#usage)

Run from the command line:

```
php artisan migrate:generate

```

Bask in the glory of all these migrations created for you.

Still left to do:
-----------------

[](#still-left-to-do)

- `$table->increments()` and `$table->timestamps()` are always added. (May require moving away from [laracasts/Laravel-5-Generators-Extended](https://github.com/laracasts/Laravel-5-Generators-Extended))
- Column length is not generated (See above, plus issues with DBAL)
- [...](https://github.com/josh-taylor/migrations-generator/issues)

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e90bb8326f039d305035461e206f1d05cbc2887de66586ca9f755905b4cd660?d=identicon)[josh-taylor](/maintainers/josh-taylor)

---

Top Contributors

[![josh-taylor](https://avatars.githubusercontent.com/u/675003?v=4)](https://github.com/josh-taylor "josh-taylor (20 commits)")

---

Tags

laravellaravel-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/josh-taylor-migrations-generator/health.svg)

```
[![Health](https://phpackages.com/badges/josh-taylor-migrations-generator/health.svg)](https://phpackages.com/packages/josh-taylor-migrations-generator)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k45.4M698](/packages/spatie-laravel-medialibrary)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M307](/packages/laravel-ai)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
