<commit_before>Migration Toolkit: Creating ORM Compatible Structure from Legacy Database
=====================

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?

```php
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)<commit_msg>Add badge.<commit_after>Migration Toolkit: Creating ORM Compatible Structure from Legacy Database
=====================

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://img.shields.io/github/release/orchestral/transporter.svg?style=flat-square)](https://packagist.org/packages/orchestra/transporter)
[![Total Downloads](https://img.shields.io/packagist/dt/orchestra/transporter.svg?style=flat-square)](https://packagist.org/packages/orchestra/transporter)
[![MIT License](https://img.shields.io/packagist/l/orchestra/transporter.svg?style=flat-square)](https://packagist.org/packages/orchestra/transporter)
[![Build Status](https://img.shields.io/travis/orchestral/transporter/3.1.svg?style=flat-square)](https://travis-ci.org/orchestral/transporter)
[![Coverage Status](https://img.shields.io/coveralls/orchestral/transporter/3.1.svg?style=flat-square)](https://coveralls.io/r/orchestral/transporter?branch=3.1)
[![Scrutinizer Quality Score](https://img.shields.io/scrutinizer/g/orchestral/transporter/3.1.svg?style=flat-square)](https://scrutinizer-ci.com/g/orchestral/transporter/)

```php
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' => $<PASSWORD>,
            ]);
        });
})->start();
```

* [Version Compatibility](#version-compatibility)
* [Installation](#installation)
{'fraction_non_alphanumeric': 0.16798277099784636, 'fraction_numerical': 0.003589375448671931, 'mean_word_length': 4.258490566037736, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 23, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '695858', 'n_tokens_mistral': 860, 'n_tokens_neox': 830, 'n_words': 152}