PHP code example of autoxloo / yii2-config-editor

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

    

autoxloo / yii2-config-editor example snippets


'modules' => [
    'editor' => [
        'class' => \autoxloo\yii2\config\editor\ConfigEditorModule::class,
        // You can set PhpContentRunner (default), JsonContentRunner 
        // or any other class which implements ContentRunnerInterface 
        'contentRunnerClass' => \autoxloo\yii2\config\editor\services\PhpContentRunner::class, // default
        'configFilesList' => [
            // list of files to allow edit
        ],
    ],
],

php composer.phar