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

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

dmitry-php/convert-migrations
=============================

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

3141PHP

Since Jun 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dmitry-php/laravel-convert-migrations)[ Packagist](https://packagist.org/packages/dmitry-php/convert-migrations)[ RSS](/packages/dmitry-php-convert-migrations/feed)WikiDiscussions master Synced 1mo 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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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/cce50db2b7f98864ca662ae540980340662ba043714af5185429ad550833d234?d=identicon)[dmitry-php](/maintainers/dmitry-php)

---

Top Contributors

[![adamkearsley](https://avatars.githubusercontent.com/u/4035484?v=4)](https://github.com/adamkearsley "adamkearsley (10 commits)")[![uber1337](https://avatars.githubusercontent.com/u/5672733?v=4)](https://github.com/uber1337 "uber1337 (4 commits)")[![dtr0yan](https://avatars.githubusercontent.com/u/1052805?v=4)](https://github.com/dtr0yan "dtr0yan (2 commits)")[![fadion](https://avatars.githubusercontent.com/u/374519?v=4)](https://github.com/fadion "fadion (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/dmitry-php-convert-migrations/health.svg)](https://phpackages.com/packages/dmitry-php-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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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