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.

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

Since Jun 27Pushed 10y 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 3w ago

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 62% 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://avatars.githubusercontent.com/u/4035484?v=4)[adamkearsley](/maintainers/adamkearsley)[@adamkearsley](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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