humanized/yii2-lookup

Yii2 Module to deal with lookup tables (tables having only id and a unique-name)

dev-master 2017-03-20 11:47 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:56:26 UTC


README

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.

The contents of this package include:

  • 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.

Either run

$ php composer.phar require humanized/yii2-lookup "*"

or add

"humanized/yii2-lookup": "*"

to the require section of your composer.json file.

Edit Configuration File

To enable the graphical user interface facilities, add the following lines to the application configuration file:

'modules' => [
    'lookup' => [
        'class' => 'humanized\lookup\Module',
    ],
],

To enable command line interface and migration facilities, add the following lines to the console configuration file:

'modules' => [
    'lookup' => [
        'class' => 'humanized\lookup\Module',
    ],
],