Download the PHP package autoxloo/yii2-config-editor without Composer
On this page you can find all versions of the php package autoxloo/yii2-config-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download autoxloo/yii2-config-editor
More information about autoxloo/yii2-config-editor
Files in autoxloo/yii2-config-editor
Package yii2-config-editor
Short Description Web interface to edit yii2 config files
License BSD-3-Clause
Informations about the package yii2-config-editor
Yii2 config editor
Web interface to edit yii2 config files.
Note: Be carefull while editing config file, if you put wrong content, you will damage website and wont access it. Make sure you have file backup!
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Config
In your config add:
Usage
Once the module is installed and configured, you can use it.
If your module name is editor
, than available routes are:
/editor/editor/index
- List of config files to edit (ConfigEditorModule::configFilesList
)./editor/editor/edit/{id}
- Edit page of config file.
ContentRunner
ContentRunner is class which implements autoxloo\yii2\config\editor\interfaces\ContentRunnerInterface
.
It allows to work with config file in different manner (json editor, php file editor...).
Available ContentRunners:
autoxloo\yii2\config\editor\services\PhpContentRunner
(default) Allows to edit php files as they are with php highlight. Uses\conquer\codemirror\CodemirrorWidget
. You can extend this class to changePhpContentRunner::getWidgetConfig()
to set own config for widget.autoxloo\yii2\config\editor\services\JsonContentRunner
Allows to edit files via json editor (widget\kdn\yii2\JsonEditor
). Note: it not saves comments.
All versions of yii2-config-editor with dependencies
yiisoft/yii2 Version ~2.0.0
kdn/yii2-json-editor Version ~2.0.0
conquer/codemirror Version ~2.0.1