PHPackages                             jumilla/laravel-versionia - 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. jumilla/laravel-versionia

AbandonedArchivedFramework-extension[Database &amp; ORM](/categories/database)

jumilla/laravel-versionia
=========================

Version based database migration system for Laravel 5.

2.0.0(8y ago)222.8k[1 issues](https://github.com/jumilla/laravel-versionia/issues)[1 PRs](https://github.com/jumilla/laravel-versionia/pulls)4MITPHPPHP ^7.0

Since Jul 22Pushed 8y ago3 watchersCompare

[ Source](https://github.com/jumilla/laravel-versionia)[ Packagist](https://packagist.org/packages/jumilla/laravel-versionia)[ Docs](http://jumilla.me)[ RSS](/packages/jumilla-laravel-versionia/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (17)Used By (4)

LARAVEL VERSIONIA
=================

[](#laravel-versionia)

[![Build Status](https://camo.githubusercontent.com/4ec4d436450f848ae05e9586ee02a833af29976bdf97b41d528da16c6d915055/68747470733a2f2f7472617669732d63692e6f72672f6a756d696c6c612f6c61726176656c2d76657273696f6e69612e737667)](https://travis-ci.org/jumilla/laravel-versionia)[![Quality Score](https://camo.githubusercontent.com/ad96bde71a39cb8866966fccd8a26624592d3180514221983303a09100cbea8e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a756d696c6c612f6c61726176656c2d76657273696f6e69612e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/jumilla/laravel-versionia)[![Code Coverage](https://camo.githubusercontent.com/0d7d4c418c5a5022101f86b249dc61c62f44b72af7b347d51a91c2b5bd759b6f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a756d696c6c612f6c61726176656c2d76657273696f6e69612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jumilla/laravel-versionia/)[![Latest Stable Version](https://camo.githubusercontent.com/16da099a3fdcdf6f2a041ba0698c351cd1f39bfb1d830b1cf4c4f5b1b938d57b/68747470733a2f2f706f7365722e707567782e6f72672f6a756d696c6c612f6c61726176656c2d76657273696f6e69612f762f737461626c652e737667)](https://packagist.org/packages/jumilla/laravel-versionia)[![Total Downloads](https://camo.githubusercontent.com/e06bbc2c26ebfda00ce6152cb1c89e89d7ea6e65c875c2f8b6885d7adc89247c/68747470733a2f2f706f7365722e707567782e6f72672f6a756d696c6c612f6c61726176656c2d76657273696f6e69612f642f746f74616c2e737667)](https://packagist.org/packages/jumilla/laravel-versionia)[![Software License](https://camo.githubusercontent.com/226904b96242464a5767387e50ee78a45fe7ad4fc788567e8da64866b66f5a97/68747470733a2f2f706f7365722e707567782e6f72672f6a756d696c6c612f6c61726176656c2d76657273696f6e69612f6c6963656e73652e737667)](https://packagist.org/packages/jumilla/laravel-versionia)

[日本語ドキュメント - Japanese](readme-ja.md)

Version based database migration system for Laravel 5.

Laravel Versionia is version based database migration system. It can be used in Laravel 5 and Lumen 5.

Concepts
--------

[](#concepts)

The feature as "migration" loads standards into Laravel 4 and 5 for management of a database (RDB) schema.

Migration is the mechanism that making of a schema and change are being managed by time series. A PHP class for the mounting of "seed" as which data is defined an early stage of a data base and the artisan command are also offered.

Versionia makes standard migration easier to use.

- Add the programmer specified "version" to migration of Laravel 5.
- As `Seeder` class of Laravel 5 can be distinguished under the name, more than one seed is changed easily.
- It's offered by a service provider along architecture of Laravel 5.
- Migration and seed classes can be arranged under the `app` directory.

A service provider is employed as Laravel 5 application and the mechanism that a Composer package offers the function. The definition which are routing and an event listener by a service provider is given, but migrations and seeds can be defined now here.

Installation method
-------------------

[](#installation-method)

### \[A\] Include Laravel Extension (Laravel).

[](#a-include-laravel-extension-laravel)

When using Laravel 5, it's recommendation here. Note: Pacakge Discovery supported.

Use [Composer](http://getcomposer.org).

```
composer require laravel-plus/extension
```

Please read the explanation of [Laravel Extension](https://github.com/jumilla/laravel-extension) for more information.

### \[B\] Include Versionia (Laravel)

[](#b-include-versionia-laravel)

Note: Pacakge Discovery supported.

Use [Composer](http://getcomposer.org).

```
composer require jumilla/laravel-versionia
```

### \[C\] Include Versionia (Lumen)

[](#c-include-versionia-lumen)

When using Lumen, it's recommendation here.

Use [Composer](http://getcomposer.org).

```
composer require jumilla/laravel-versionia
```

Next the next code is added to `boostrap/app.php`.

```
$app->register(Jumilla\Versionia\Laravel\ServiceProvider::class);
```

Migration version definition
----------------------------

[](#migration-version-definition)

There was Naming Rule in the file name of migration class so far, and an order of migration had been decided by the file generation date and time when you were embedded in the file name. A group and the version are given specifically every migration class and it's defined by the `DatabaseServiceProvider` class in Versionia.

```
