stepanorda/yii2-contenttypes

Installs: 144

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 2

Open Issues: 0

Type:yii2-extension

dev-master 2015-09-04 13:51 UTC

This package is not auto-updated.

Last update: 2024-06-08 14:46:15 UTC


README

This extension keeps track of your models giving them unique ids so you can easily use them in junction tables. In the future I plan to improve this extension so it will be something like ContentTypes from Django framework.

Installation

Downloading yii2-contenttypes using composer

Add yii2-contenttypes to the require section of your composer.json file:

{
     "require": {
         "stepanorda/yii2-contenttypes": "*"
     }
}

Then run the command:

$ php composer.phar update

Apply the migration:

$ php yii migrate/up --migrationPath=@vendor/stepanorda/yii2-contenttypes/migrations

Usage

License

Apache License 2.0 http://www.apache.org/licenses/