PHPackages                             rottriges/yii2-gantt-column - 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. rottriges/yii2-gantt-column

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

rottriges/yii2-gantt-column
===========================

Ganttchart-Column for yii2 grid for project-management

61.2k4PHP

Since Nov 29Pushed 4y ago3 watchersCompare

[ Source](https://github.com/rottriges/yii2-gantt-column)[ Packagist](https://packagist.org/packages/rottriges/yii2-gantt-column)[ RSS](/packages/rottriges-yii2-gantt-column/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

yii2-gantt-column
=================

[](#yii2-gantt-column)

[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](https://www.yiiframework.com/)

[![Latest Stable Version](https://camo.githubusercontent.com/ce9121b9920f171ccccc1cbab6ccb872c8442839c9dc72548364d5fb273ebfd6/68747470733a2f2f706f7365722e707567782e6f72672f726f747472696765732f796969322d67616e74742d636f6c756d6e2f76)](//packagist.org/packages/rottriges/yii2-gantt-column) [![Total Downloads](https://camo.githubusercontent.com/2d3a42cc67068faa06ec800c7c15e4b2e5abe483900377a3a70498af01d99192/68747470733a2f2f706f7365722e707567782e6f72672f726f747472696765732f796969322d67616e74742d636f6c756d6e2f646f776e6c6f616473)](//packagist.org/packages/rottriges/yii2-gantt-column) [![Latest Unstable Version](https://camo.githubusercontent.com/382d8f1d4690c605f48df6266239621bd18d3a278a43f177277f688fb4e0ee01/68747470733a2f2f706f7365722e707567782e6f72672f726f747472696765732f796969322d67616e74742d636f6c756d6e2f762f756e737461626c65)](//packagist.org/packages/rottriges/yii2-gantt-column) [![License](https://camo.githubusercontent.com/e1c5cb25c0741012beb7af59997bf8bfdfdede8a04b1ab17d20a2692f781698c/68747470733a2f2f706f7365722e707567782e6f72672f726f747472696765732f796969322d67616e74742d636f6c756d6e2f6c6963656e7365)](//packagist.org/packages/rottriges/yii2-gantt-column)

Gantt-Column widget for *Yii Framework 2.0 grid* extends the data column. It could be used for project management or other planings. The widget incorporates with Bootstrap 3.x.

[![ganttColumnScreenshot](assets/img/ganttColumn1.png)](assets/img/ganttColumn1.png)

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

[](#installation)

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

### Prerequisite

[](#prerequisite)

You must set the `minimum-stability` to `dev` in the **composer.json** file in your application root folder before installation of this extension.

### Install

[](#install)

You can directly run

```
$ php composer.phar require rottriges/yii2-gantt-column "1.0.*"

```

or you add the following to to the `require` section of your `composer.json` file.

```
"rottriges/yii2-gantt-column": "1.0.*"

```

Usage
-----

[](#usage)

#### Model with dataProvider:

[](#model-with-dataprovider)

```
namespace app\models;

use yii\data\ArrayDataProvider;

class GanttTest extends \yii\base\Model
{
  public function getDataProvider()
  {
      $testArray = [
        [
          'task' => 'Project planing',
          'type' => 'primary',
          'START_DATE' => '2020-10-19',
          'END_DATE' => '2020-11-07'
        ],
        [
          'task' => 'Production',
          'type' => 'danger',
          'START_DATE' => '2020-11-15',
          'END_DATE' => '2021-03-29'
        ],
        [
          'task' => 'Release',
          'type' => 'success',
          'START_DATE' => '2021-04-05',
          'END_DATE' => '2021-04-06'
        ],
      ];
     return new ArrayDataProvider([
          'allModels' => $testArray,
          'pagination' => [
              'pageSize' => 0,
          ],
        ]
      );
  }
}
```

#### View:

[](#view)

```
use yii\grid\GridView;

echo GridView::widget([
  'dataProvider' => $model->dataProvider,
  'columns' => [
    [
      'attribute' => 'gantChart'
      'class' => 'rottriges\ganttcolumn\GanttColumn',
      'ganttOptions' => [
        // start or endDateRange can either be a static date (Y-m-d)
        // or an offset in weeks to the current date (-2, 0, 5, ...)
        // 'dateRangeStart' => '2019-10-31',
        // 'dateRangeEnd' => '2020-10-01',
        'dateRangeStart' => -4,
        'dateRangeEnd' => 28,
        'startAttribute' => 'START_DATE',
        'endAttribute' => 'END_DATE',
        // progressBarType [string | closure] possible values
        // primary, info, warning or danger.
        'progressBarType' => function($model, $key, $index) {
          return $model['type'];
        }
        // progressBarColor [string | closure]
        // css color property
        // if color is set progressbar type will be overwritten
        'progressBarType' => function($model, $key, $index) {
          return $model['type'];
        }
      ]
    ],
  ],
]);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e6d103adac38cb9fa0ce3a1a10716e15001e95fd008f7902f3fe87809ebb916?d=identicon)[rottriges](/maintainers/rottriges)

---

Top Contributors

[![rottriges](https://avatars.githubusercontent.com/u/12731068?v=4)](https://github.com/rottriges "rottriges (35 commits)")

### Embed Badge

![Health badge](/badges/rottriges-yii2-gantt-column/health.svg)

```
[![Health](https://phpackages.com/badges/rottriges-yii2-gantt-column/health.svg)](https://phpackages.com/packages/rottriges-yii2-gantt-column)
```

###  Alternatives

[phabel/phabel

Write and deploy modern PHP 8 code, today.

24560.4k12](/packages/phabel-phabel)[typo3/cms-setup

TYPO3 CMS Setup - Allows users to edit a limited set of options for their user profile, including preferred language, their name and email address.

178.5M103](/packages/typo3-cms-setup)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
