Yii2 Lookup Table Module
Yii2 module providing various interfaces for dealing the repetitive tasks of managing lookup tables, i.e. individual database tables having only an auto-incremented primary key and a unique label., (*1)
The contents of this package include:, (*2)
- A graphical user interface providing CRUD operations for lookup table records
- A command line interface providing CRUD operations and bulk import for lookup table records
- A database migration helper to manage creation and dropping of lookup tables
Installation
Install Using Composer
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
$ php composer.phar require humanized/yii2-lookup "*"
or add, (*5)
"humanized/yii2-lookup": "*"
to the require
section of your composer.json
file., (*6)
Edit Configuration File
To enable the graphical user interface facilities, add the following lines to the application configuration file:, (*7)
'modules' => [
'lookup' => [
'class' => 'humanized\lookup\Module',
],
],
To enable command line interface and migration facilities, add the following lines to the console configuration file:, (*8)
'modules' => [
'lookup' => [
'class' => 'humanized\lookup\Module',
],
],