tomzx/laravel-migration
Larablocks Analysis
tomzx/laravel-migration works with Laravel 4 and 5 (latest release v0.2.0, Nov 19, 2015), all past end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 4 and 5, past end of life
- No release in the last 12 months (last: Nov 19, 2015)
- 0 downloads a month (needs 10,000)
- 5 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Nov 19, 2015.
- No releases in the last 12 months.
- First released: Nov 18, 2015.
- 3 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.
| Install | |
|---|---|
composer require tomzx/laravel-migration |
|
| Latest Version: | v0.2.0 |
| PHP: | >=5.4.0 |
| Laravel: | 4 · 5 |
| License: | MIT |
| Last Updated: | Nov 21, 2015 |
| Links: | GitHub · Packagist |
Laravel Migration
This is a small package that builds on Laravel's wonderful database package. It extracts the database migration feature in order to use it in any project that may not be built on Laravel.
Note
This is currently a proof of concept. There are rough edges (such as the configuration file and migrations folder location). Those should be fixed given enough time and feedback. Feel free to submit a PR if you have a suggestion on how to deal with those!
This project currently uses some from of "hack" by creating some files in the Illuminate/Foundation namespace. It is expected you will not use this project within the context of a Laravel application, otherwise conflicts will occur.
Getting Started
Laravel 4
Due to technical constraints, the folder structure in Laravel 4 has to be a certain way (specifically, we need a database/migrations path). You can follow Laravel 5 instructions on how to get started, simply make sure that you create the database/migrations path (instead of simply migrations).
your-project
- database
-- database.php
-- database
--- migrations
---- 2015_11_17_215411_some_migration.php
- vendor
-- tomzx
--- LaravelMigration
Laravel 5
The current implementation looks in the current working directory for a configuration file database.php and migration files in the migrations directory.
your-project
- database
-- database.php
-- migrations
--- 2015_11_17_215411_some_migration.php
- vendor
-- tomzx
--- LaravelMigration
To use the tool, you would call laravel-migration within the database directory in the following way:
php ../vendor/bin/laravel-migration
Thus, the current setup steps are:
- Create a
databasedirectory where you will store yourdatabase.phpandmigrationsfiles - Copy
database.phpto your newly created directory and configure it to your needs - Create a
migrationsdirectory in the newly created directory - You may now enjoy
laravel-migration!
License
The code is licensed under the MIT license. See LICENSE.
Related Packages
Lets you add foreign keys in a swift! Foreign key adder in laravel migration.
Make tests run faster by using fresh copies of pre-migrated databases.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.2.0 | >=5.4.0 | ~4.2| | MIT | |
| v0.1.0 | >=5.4.0 | ~4.2| | MIT |