PHPackages                             orchestra/transporter - 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. orchestra/transporter

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

orchestra/transporter
=====================

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

v3.2.0(10y ago)3141[2 issues](https://github.com/orchestral/transporter/issues)MITPHP

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/orchestral/transporter)[ Packagist](https://packagist.org/packages/orchestra/transporter)[ RSS](/packages/orchestra-transporter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (7)Used By (0)

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database
=========================================================================

[](#migration-toolkit-creating-orm-compatible-structure-from-legacy-database)

[![Join the chat at https://gitter.im/orchestral/platform/components](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/orchestral/platform/components?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Have you ever taken a project that had a messy, unstructured database design? Have you ever wish you can transform those project to become more Eloquent friendly?

[![Latest Stable Version](https://camo.githubusercontent.com/42d8adf2eb9ec76e30acdadb74ad76ee9a30169b412c37a3f5abdff2d1ee2cf7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f72636865737472616c2f7472616e73706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orchestra/transporter)[![Total Downloads](https://camo.githubusercontent.com/640c8acc448ef96ad677dff18125a06ca45e1a648746122cb3f6689eb20243f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f72636865737472612f7472616e73706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orchestra/transporter)[![MIT License](https://camo.githubusercontent.com/9433d41aa532525e66c98f98bbe592cad80753a74874df7a4e3398c2901a0fa5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f72636865737472612f7472616e73706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/orchestra/transporter)[![Build Status](https://camo.githubusercontent.com/57447f76737012e41620e5013347c882b479423bb0222adbdd7d967d68b67482/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f72636865737472616c2f7472616e73706f727465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/orchestral/transporter)[![Coverage Status](https://camo.githubusercontent.com/130790df4bdc253c180692fc261632a5ae77af0b2f7404f05794a9ae0a02f5fe/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6f72636865737472616c2f7472616e73706f727465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/orchestral/transporter?branch=master)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/2f1ca85029ac7214f6f87e338ce2fb7bcc6d557e9427a6baa0fe1927caed80ef/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f72636865737472616c2f7472616e73706f727465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/orchestral/transporter/)

```
use App\User;
use Illuminate\Database\Query\Builder;
use Orchestra\Transporter\Blueprint;
use Orchestra\Transporter\Schema;

Schema::table('member', function (Blueprint $blueprint) {
    $blueprint->connection('legacy')
        ->key('member_id')
        ->filter(function (Builder $query) {
            $query->where('active', '=', 1);
        })->transport(function ($data) {
            return new User([
                'email' => $data->u_email,
                'password' => $data->u_password,
            ]);
        });
})->start();
```

- [Version Compatibility](#version-compatibility)
- [Installation](#installation)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelTransporter5.1.x3.1.x5.2.x3.2.x5.3.x3.3.x@dev5.4.x3.4.x@devInstallation
------------

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "orchestra/transporter": "~3.1"
    }
}
```

And then run `composer install` to fetch the package.

### Quick Installation

[](#quick-installation)

You could also simplify the above code by using the following command:

```
composer require "orchestra/transporter=~3.1"

```

### Setup

[](#setup)

For simplicity, Transporter Component doesn't include any service provider. You can simply run the migration via:

```
php artisan migrate --path=vendor/orchestra/transporter/resources/database/migrations

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~70 days

Recently: every ~83 days

Total

6

Last Release

3578d ago

PHP version history (2 changes)3.2.x-devPHP &gt;=5.5.0

3.3.x-devPHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/172966?v=4)[Mior Muhammad Zaki](/maintainers/crynobone)[@crynobone](https://github.com/crynobone)

---

Top Contributors

[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (52 commits)")

---

Tags

laravelmigrationorchestra-platformorchestral

### Embed Badge

![Health badge](/badges/orchestra-transporter/health.svg)

```
[![Health](https://phpackages.com/badges/orchestra-transporter/health.svg)](https://phpackages.com/packages/orchestra-transporter)
```

###  Alternatives

[kitloong/laravel-migrations-generator

Generates Laravel Migrations from an existing database

2.9k7.4M24](/packages/kitloong-laravel-migrations-generator)[orchestra/tenanti

Tenant based Database Schema Manager for Laravel

588123.8k](/packages/orchestra-tenanti)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)[codengine/laravel-custom-migrations

Custom Migrations for Laravel

131.3k](/packages/codengine-laravel-custom-migrations)

PHPackages © 2026

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