asinfotrack / yii2-wiki
Yii2-Wiki is a flexible implementation of a wiki for Yii2
Installs: 593
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 7
Forks: 7
Open Issues: 1
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: 2.0.*
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-codeception: ~2.0.0
This package is auto-updated.
Last update: 2024-11-08 22:44:16 UTC
README
Yii2-Wiki is a flexible implementation of a wiki for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require asinfotrack/yii2-wiki
or add
"asinfotrack/yii2-wiki": "dev-master"
to the require
section of your composer.json
file.
Configuration
Migration
For the default table structure execute the provided migration as follows:
yii migrate --migrationPath=@vendor/asinfotrack/yii2-wiki/migrations
To remove the table just do the same migration downwards.
Configuring the module
add the following entry to the modules-part of your config-file:
//... 'modules'=>[ 'wiki'=>[ 'class'=>'asinfotrack\yii2\wiki\Module', 'processContentCallback'=>function($content) { //example if you want to use markdown in your wiki return Parsedown::instance()->parse($content); } ], ], //...
For a full list of possible options check out the well documented attributes of the module-class.
Bootstrapping the module
This step is only necessary if you want to use the deafault url-rules provided by the module.
If you want to use this feature, add the module-id to the bootstrap-array of your config file:
//... 'bootstrap'=>['log', 'wiki'], //...