2017 © Pedro Peláez
 

library yii2-migration

Yii 2 composer module migration helper

image

ivanovyordan/yii2-migration

Yii 2 composer module migration helper

  • Sunday, January 25, 2015
  • by ivanovyordan
  • Repository
  • 2 Watchers
  • 1 Stars
  • 701 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Yii 2 Dependencies Migration

This is a small Composer module that helps you reuse your Yii 2 modules., (*1)

Installation

Either run the following command in your project root:, (*2)

php composer.phar require --prefer-dist ivanovyordan/yii2-migration "*"

or add this to the require section of your composer.json file:, (*3)

"ivanovyordan/yii2-migration": "*"

Setup

Add the following to two rows to the scripts sections in your composer.json file:, (*4)

"post-install-cmd": "ivanovyordan\\migration\\Migration::migrate",
"post-update-cmd": "ivanovyordan\\migration\\Migration::migrate"

Usage

  1. Create packages for all your modules you want to reuse.
  2. Create a migrations folder for modules that requires migrations.
  3. Add your migrations in the migration directory.

Following these three steps will give you the chance to reuse and redistribute and update your modules without the need to manually do your migrations., (*5)

The Versions

25/01 2015

dev-master

9999999-dev

Yii 2 composer module migration helper

  Sources   Download

MIT

The Requires

 

yii2 migration

24/01 2015

v1.0.1

1.0.1.0

Yii 2 composer module migration helper

  Sources   Download

MIT

The Requires

 

yii2 migration

19/12 2014

v1.0.0

1.0.0.0

Yii 2 composer module migration helper

  Sources   Download

MIT

The Requires

 

yii2 migration