PHPackages                             simialbi/yii2-kanban - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. simialbi/yii2-kanban

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

simialbi/yii2-kanban
====================

Kanban board module for yii2

2.3.0(4y ago)111.1k↓83.3%111MITPHPPHP &gt;=5.6CI failing

Since Oct 18Pushed 7mo ago6 watchersCompare

[ Source](https://github.com/simialbi/yii2-kanban)[ Packagist](https://packagist.org/packages/simialbi/yii2-kanban)[ RSS](/packages/simialbi-yii2-kanban/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (19)Versions (57)Used By (1)

Kanban board implementation for yii2
====================================

[](#kanban-board-implementation-for-yii2)

[![Latest Stable Version](https://camo.githubusercontent.com/556b0bf2387040e19198be09b1d8c2f832f278b3d121d15d28f131c58c6470b7/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f796969322d6b616e62616e2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/yii2-kanban)[![Total Downloads](https://camo.githubusercontent.com/2a5cca2b419f28d9b7719e9d90fbe22f11d6e6ec1cfa6229213068007e7b6112/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f796969322d6b616e62616e2f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/yii2-kanban)[![License](https://camo.githubusercontent.com/474209c92bbd3770ee00ecd364f176d75e002eff52686ef2a7b5017a63c683f2/68747470733a2f2f706f7365722e707567782e6f72672f73696d69616c62692f796969322d6b616e62616e2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/simialbi/yii2-kanban)[![build](https://github.com/simialbi/yii2-kanban/actions/workflows/build.yml/badge.svg)](https://github.com/simialbi/yii2-kanban/actions/workflows/build.yml)

Resources
---------

[](#resources)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require --prefer-dist simialbi/yii2-kanban

```

or add

```
"simialbi/yii2-kanban": "^2.0.0"

```

to the `require` section of your `composer.json`.

Usage
-----

[](#usage)

In order to use this module, you will need to:

1. [Setup Module](#setup-module) your application so that the module is available.
2. [Create a user identity](#create-identity) class which extends UserInterface

### Setup Module

[](#setup-module)

Configure the module in the modules section of your Yii configuration file.

```
'modules' => [
    'kanban' => [
        'class' => 'simialbi\yii2\kanban\Module',
        //'statuses' => [],
        //'statusColors' => [],
        //'on boardCreated' => function ($event) {},
        //[...]
    ]
]
```

#### Parameters

[](#parameters)

ParameterDescription`statuses`Define your own task statuses.`statusColors`Add your own color for each status. *Be sure to define a color for each status if you override colors or define your own statuses.*> Notice: The Statuses `Task::STATUS_NOT_BEGUN`, `Task::STATUS_DONE` and `TASK::STATUS_LATE` will automatically be defined if you do not define them.

#### Events

[](#events)

EventDescription`EVENT_BOARD_CREATED`Will be triggered after a new board was created.`EVENT_BUCKET_CREATED`Will be triggered after a new bucket was created in any board.`EVENT_TASK_CREATED`Will be triggered after a task was created in any bucket.`EVENT_TASK_ASSIGNED`Will be triggered after a task got assigned to a user.`EVENT_TASK_UNASSIGNED`Will be triggered after an assignment from a task to a user got revoked.`EVENT_TASK_STATUS_CHANGED`Will be triggered after a tasks status changed.`EVENT_TASK_COMPLETED`Will be triggered after a tasks status changed to `Task::STATUS_DONE`.`EVENT_CHECKLIST_CREATED`Will be triggered after a task got one or more new checklist elements.`EVENT_COMMENT_CREATED`Will be triggered after a task got a new comment.`EVENT_ATTACHMENT_ADDED`Will be triggered after a task got one or more new attachments.### Setup console config and apply migrations

[](#setup-console-config-and-apply-migrations)

Apply the migrations either with the following command: `yii migrate --migration-namespaces='simialbi\yii2\kanban\migrations'`or configure your console like this:

```
[
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationNamespaces' => [
                'simialbi\yii2\kanban\migrations'
            ]
        ]
    ]
]
```

and apply the `yii migrate` command.

### Create identity

[](#create-identity)

Create an identity class which implements `simialbi\yii2\models\UserInterface` e.g.:

```
