2017 © Pedro Peláez
 

yii2-extension yii2-wiki

Yii2-Wiki is a flexible implementation of a wiki for Yii2

image

asinfotrack/yii2-wiki

Yii2-Wiki is a flexible implementation of a wiki for Yii2

  • Tuesday, February 16, 2016
  • by asinfotrack
  • Repository
  • 6 Watchers
  • 7 Stars
  • 102 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

yii2-wiki

Yii2-Wiki is a flexible implementation of a wiki for Yii2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

$ composer require asinfotrack/yii2-wiki

or add, (*4)

"asinfotrack/yii2-wiki": "dev-master"

to the require section of your composer.json file., (*5)

Configuration

Migration

For the default table structure execute the provided migration as follows:, (*6)

yii migrate --migrationPath=@vendor/asinfotrack/yii2-wiki/migrations

To remove the table just do the same migration downwards., (*7)

Configuring the module

add the following entry to the modules-part of your config-file:, (*8)

//...

'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., (*9)

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:, (*10)

//...

'bootstrap'=>['log', 'wiki'],

//...

The Versions

16/02 2016

dev-master

9999999-dev

Yii2-Wiki is a flexible implementation of a wiki for Yii2

  Sources   Download

MIT

The Requires

 

yii2 module wiki