2017 © Pedro Peláez
 

yii2-extension yii2-install

Database Installer for every Site

image

spanjeta/yii2-install

Database Installer for every Site

  • Tuesday, July 5, 2016
  • by spanjeta
  • Repository
  • 1 Watchers
  • 2 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

yii2-installer

Database Installing functionality module extention for Yii2., (*1)

=========== Database Installer for every Site, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist spanjeta/yii2-install "*"

or add, (*5)

"spanjeta/yii2-install": "*"

to the require section of your composer.json file., (*6)

Usage


Add to modules ```php $config ['modules'] ['install'] = [ 'class' => 'app\modules\install\Install', ];

Save your SQL file in _backup folder with the name of "db_backup.sql"., (*7)

Add to web.php file, (*8)


defined ( 'SQL_FILE_PATH' ) or define ( 'SQL_FILE_PATH', dirname ( __FILE__ ) .'/../_backup/db_backup.sql' ); defined ( 'DB_CONFIG_PATH' ) or define ( 'DB_CONFIG_PATH', dirname ( __FILE__ ) . '/config/' ); defined ( 'DB_CONFIG_FILE_PATH' ) or define ( 'DB_CONFIG_FILE_PATH', DB_CONFIG_PATH . 'db' . '.php' ); defined ( 'DB_BACKUP_FILE_PATH' ) or define ( 'DB_BACKUP_FILE_PATH', dirname ( __FILE__ ) );

Pretty Url's /install, (*9)

No pretty Url's index.php?r=install, (*10)

```, (*11)

The Versions

05/07 2016

dev-master

9999999-dev

Database Installer for every Site

  Sources   Download

Apache-2.0

The Requires

 

by Shiv Charan Panjeta

database extension yii2 installer