PHP code example of aquy / yii2-setting

1. Go to this page and download the library: Download aquy/yii2-setting 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/ */

    

aquy / yii2-setting example snippets


./yii migrate/up --migrationPath=@vendor/aquy/yii2-setting/migrations

./yii migrate/down --migrationPath=@vendor/aquy/yii2-setting/migrations

	'components' => [
		'setting' => [
        	'class' => 'aquy\setting\Setting'
        ],
        ...
	]

Yii::$app->setting->get('key');

	'modules' => [
		'setting' => [
        	'class' => 'aquy\setting\module\Module'
        ],
        ...
	]

php composer.phar 

php composer.phar update