PHPackages                             adamkearsley/convert-migrations - 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. adamkearsley/convert-migrations

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

adamkearsley/convert-migrations
===============================

Artisan command to convert your current SQL database schema into a Laravel 4 Migration file.

928.5k34[8 issues](https://github.com/adamkearsley/laravel-convert-migrations/issues)[1 PRs](https://github.com/adamkearsley/laravel-convert-migrations/pulls)PHP

Since Jun 27Pushed 9y ago5 watchersCompare

[ Source](https://github.com/adamkearsley/laravel-convert-migrations)[ Packagist](https://packagist.org/packages/adamkearsley/convert-migrations)[ RSS](/packages/adamkearsley-convert-migrations/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Convert Migrations
==========================

[](#laravel-convert-migrations)

This is an artisan command to convert your current SQL database schema into a Laravel 4 Migration file. It'll come really handy when you have started a Laravel project without using migrations, or if you're migrating an old app to Laravel.

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

[](#installation)

1. Add the package to your composer.json file and run `composer update`:

```
"require": {
    "adamkearsley/convert-migrations": "dev-master"
}
```

2. Add `'Adamkearsley\ConvertMigrations\ConvertMigrationsServiceProvider'` to your `app/config/app.php` file, inside the `providers` array.

Usage
-----

[](#usage)

Now it's as easy as running `php artisan convert:migrations myDatabaseName`. Wait a few seconds and, magically, you'll have a new migration in `app/database/migrations`.

**Ignoring Tables**

You can even ignore tables from the migration if you need to. Just use the `ignore` option and separate table names with a comma: `php artisan convert:migrations --ignore="table1, table2"`.

Credits
-------

[](#credits)

Credits go to "bruceoutdoors" [original class](https://gist.github.com/bruceoutdoors/9166186).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.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/4d2df7957c3e7b34fa674ce87e912867912dc0330197de56f9701c936cdc265e?d=identicon)[adamkearsley](/maintainers/adamkearsley)

---

Top Contributors

[![adamkearsley](https://avatars.githubusercontent.com/u/4035484?v=4)](https://github.com/adamkearsley "adamkearsley (11 commits)")[![uber1337](https://avatars.githubusercontent.com/u/5672733?v=4)](https://github.com/uber1337 "uber1337 (4 commits)")[![fadion](https://avatars.githubusercontent.com/u/374519?v=4)](https://github.com/fadion "fadion (1 commits)")[![ysugimoto](https://avatars.githubusercontent.com/u/1000401?v=4)](https://github.com/ysugimoto "ysugimoto (1 commits)")

### Embed Badge

![Health badge](/badges/adamkearsley-convert-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/adamkearsley-convert-migrations/health.svg)](https://phpackages.com/packages/adamkearsley-convert-migrations)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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