2017 © Pedro Peláez
 

library transporter

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

image

orchestra/transporter

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  • Sunday, July 31, 2016
  • by crynobone
  • Repository
  • 1 Watchers
  • 2 Stars
  • 133 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Join the chat at https://gitter.im/orchestral/platform/components, (*1)

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?, (*2)

Latest Stable Version Total Downloads MIT License Build Status Coverage Status Scrutinizer Quality Score, (*3)

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

Laravel Transporter
5.1.x 3.1.x
5.2.x 3.2.x
5.3.x 3.3.x@dev
5.4.x 3.4.x@dev

Installation

To install through composer, simply put the following in your composer.json file:, (*4)

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

And then run composer install to fetch the package., (*5)

Quick Installation

You could also simplify the above code by using the following command:, (*6)

composer require "orchestra/transporter=~3.1"

Setup

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

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

The Versions

31/07 2016

3.3.x-dev

3.3.9999999.9999999-dev

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel migration orchestral orchestra-platform

17/06 2016

dev-master

9999999-dev

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel migration orchestral orchestra-platform

26/05 2016

3.2.x-dev

3.2.9999999.9999999-dev

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel migration orchestral orchestra-platform

24/11 2015

v3.2.0

3.2.0.0

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel migration orchestral orchestra-platform

24/11 2015

3.1.x-dev

3.1.9999999.9999999-dev

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel migration orchestral orchestra-platform

03/09 2015

v3.1.0

3.1.0.0

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel migration orchestral orchestra-platform

15/08 2015

v3.1.0-BETA1

3.1.0.0-beta1

Migration Toolkit: Creating ORM Compatible Structure from Legacy Database

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel migration orchestral orchestra-platform