PHPackages                             barryvdh/laravel-migration-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. barryvdh/laravel-migration-generator

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

barryvdh/laravel-migration-generator
====================================

Generate migrations based on existing database

24626.2k30[6 issues](https://github.com/barryvdh/laravel-migration-generator/issues)PHP

Since Jul 23Pushed 11y ago1 watchersCompare

[ Source](https://github.com/barryvdh/laravel-migration-generator)[ Packagist](https://packagist.org/packages/barryvdh/laravel-migration-generator)[ RSS](/packages/barryvdh-laravel-migration-generator/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel4 Migration Generator
----------------------------

[](#laravel4-migration-generator)

### Generate migrations based on existing tables

[](#generate-migrations-based-on-existing-tables)

***You might want to checkout  which is similar to this package, but is developed more recently and is using way/generators version 2.x. My package is still on 1.x and I'll have to see when/if I can upgrade. This package does still work, but isn't actively supported currently***

Require this package in your composer.json:

```
"barryvdh/laravel-migration-generator": "dev-master"

```

And update dependencies using composer:

```
composer update

```

And add the ServiceProvider to the providers array in app/config/app.php

```
'Barryvdh\MigrationGenerator\MigrationGeneratorServiceProvider',

```

You can now generate the migration by running the command, followed by the tables you want to generate

```
php artisan migration-generate posts,users

```

Your migrations will be created in app/database/migrations

Migrations are generated by This assumes the key is 'id' and timestamps (created\_at/updated\_at) are generated by default.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dad47b02be23edb7094a151b4b1ce7e9cb56b75cd87cd3341d140e1e1e9cd0e4?d=identicon)[barryvdh](/maintainers/barryvdh)

---

Top Contributors

[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (12 commits)")[![danharper](https://avatars.githubusercontent.com/u/510740?v=4)](https://github.com/danharper "danharper (1 commits)")[![jbtbnl](https://avatars.githubusercontent.com/u/639688?v=4)](https://github.com/jbtbnl "jbtbnl (1 commits)")

### Embed Badge

![Health badge](/badges/barryvdh-laravel-migration-generator/health.svg)

```
[![Health](https://phpackages.com/badges/barryvdh-laravel-migration-generator/health.svg)](https://phpackages.com/packages/barryvdh-laravel-migration-generator)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

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