PHP code example of yii2tech / install

1. Go to this page and download the library: Download yii2tech/install library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yii2tech / install example snippets


defined('YII_DEBUG') or define('YII_DEBUG', {{yiiDebug}});
defined('YII_ENV') or define('YII_ENV', '{{yiiEnv}}');

return [
    'components' => [
        'db' => [
            'dsn' => 'mysql:host={{dbHost}};dbname={{dbName}}',
            'username' => '{{dbUser}}',
            'password' => '{{dbPassword}}',
        ],
    ],
];

php composer.phar 

php composer.phar 

php install.php init

php install.php init --interactive=0

php install.php init/config @app/config/install.php

php install.php init --config=@app/config/install.php --interactive=0