umbalaconmeogia/yii2-batsg

My best practice and my libraries when using yii2 framework.

Installs: 3 122

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

Type:yii2-extension

v0.7.2 2024-02-19 01:44 UTC

README

My style, my best practice and my libraries when using yii2 framework.

Overview

  • Convention when designing database.
  • gii modification

Convention when designing database

  • All DB table should contain following columns.
Column name Data type Description
id serial primary key
data_status int 1: new, 2: updated, 9: deleted
created_by int Create user id. Set automatically.
created_at int Created timestamp. Set automatically.
updated_by int Update user id. Set automatically.
updated_at int Updated timestamp. Set automatically.

Install yii2-batsg into your project.

composer require umbalaconmeogia/yii2-batsg

Explanation about composer require, update and install

command change composer.json change composer.lock
require Y Y
update N Y
install N N
  • require: composer require umbalaconmeogia/yii2-batsg This will update or install the newest version. composer.json and composer.lock will be updated as well.
  • update: composer update umbalaconmeogia/yii2-batsg This will update the package with the highest version respects to your composer.json. The entry in composer.lock will be updated.
  • install: composer install umbalaconmeogia/yii2-batsg This will install version specified in the lock file