PHPackages                             nkovacs/yii2-table-builder - 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. nkovacs/yii2-table-builder

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

nkovacs/yii2-table-builder
==========================

Table builder migration helper extension for Yii 2

1.0.3(9y ago)039.4k↓84.8%1BSD-3-ClausePHP

Since Sep 17Pushed 9y ago2 watchersCompare

[ Source](https://github.com/nkovacs/yii2-table-builder)[ Packagist](https://packagist.org/packages/nkovacs/yii2-table-builder)[ RSS](/packages/nkovacs-yii2-table-builder/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

Yii 2 migration table builder
=============================

[](#yii-2-migration-table-builder)

Table builder migration helper extension for Yii 2

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist nkovacs/yii2-table-builder "*"

```

or add

```
"nkovacs/yii2-table-builder": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

In order to use this extension, your migrations must extend from `\nkovacs\tablebuilder\Migration`. Once the extension is installed, it will override the migrate command's templateFile property during application bootstrap process, allowing you to use the extension's Migration class in newly created migrations, provided you did not override templateFile yourself.

An example migration:

```
