<commit_before># Laravel Migrations Generator

[![Build Status](https://travis-ci.org/Xethron/migrations-generator.svg)](https://travis-ci.org/Xethron/migrations-generator)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Xethron/migrations-generator/badges/quality-score.png?s=41d919c6d044749cb8575bb936efbddc4cebc0d8)](https://scrutinizer-ci.com/g/Xethron/migrations-generator/)
[![Latest Stable Version](https://poser.pugx.org/xethron/migrations-generator/v/stable.png)](https://packagist.org/packages/xethron/migrations-generator)
[![Total Downloads](https://poser.pugx.org/xethron/migrations-generator/downloads.png)](https://packagist.org/packages/xethron/migrations-generator)
[![License](https://poser.pugx.org/xethron/migrations-generator/license.png)](https://packagist.org/packages/xethron/migrations-generator)

Generate Laravel Migrations from an existing database, including indexes and foreign keys!

## Laravel 5

Thanks to @jamisonvalenta, you can now generate Migrations in Laravel 5!

For Laravel 5 installations, use version: "dev-l5" as follows:
```json
"require-dev": {
    "xethron/migrations-generator": "dev-l5"
}
```

## Install

Edit your composer.json file to require `xethron/migrations-generator` and run `composer update`
```json
"require-dev": {
    "xethron/migrations-generator": "dev-master"
}
```

Next, add the following service provider:

```
'Way\Generators\GeneratorsServiceProvider',
'Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider',
```<commit_msg>update Laravel 5 docs: explain composer bug and adding repo pointer<commit_after># Laravel Migrations Generator

[![Build Status](https://travis-ci.org/Xethron/migrations-generator.svg)](https://travis-ci.org/Xethron/migrations-generator)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Xethron/migrations-generator/badges/quality-score.png?s=41d919c6d044749cb8575bb936efbddc4cebc0d8)](https://scrutinizer-ci.com/g/Xethron/migrations-generator/)
[![Latest Stable Version](https://poser.pugx.org/xethron/migrations-generator/v/stable.png)](https://packagist.org/packages/xethron/migrations-generator)
[![Total Downloads](https://poser.pugx.org/xethron/migrations-generator/downloads.png)](https://packagist.org/packages/xethron/migrations-generator)
[![License](https://poser.pugx.org/xethron/migrations-generator/license.png)](https://packagist.org/packages/xethron/migrations-generator)

Generate Laravel Migrations from an existing database, including indexes and foreign keys!

## Laravel 5

Thanks to @jamisonvalenta, you can now generate Migrations in Laravel 5!

For Laravel 5 installations, use version: "dev-l5" as follows:
```json
"require-dev": {
    "xethron/migrations-generator": "dev-l5"
}
```
Also, due to a composer bug, you may need explicitly add the forked `way/generators` repo:
```json
"repositories": [
    {
        "type": "git",
        "url": "<EMAIL>:jamisonvalenta/Laravel-4-Generators.git"
    }
]
```
For those who use `way/generators`: you will not be able to resolve a package version for both this package and `way/generators`. `composer update` without requiring `way/generators` to generate your migrations. Then remove `xethron/migrations-generator`, add your preferred version, and `composer update` again.  

## Install

Edit your composer.json file to require `xethron/migrations-generator` and run `composer update`
```json
"require-dev": {
    "xethron/migrations-generator": "dev-master"
}
```

Next, add the following service provider:

```
'Way\Generators\GeneratorsServiceProvider',
'Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider',
```
{'fraction_non_alphanumeric': 0.14163445610160133, 'fraction_numerical': 0.015461071231363888, 'mean_word_length': 5.900952380952381, 'pattern_counts': {'":': 11, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5573976', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1214, 'n_words': 226}