PHPackages                             adzon/laravel-gantt - 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. adzon/laravel-gantt

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adzon/laravel-gantt
===================

Laravel package to display items within a Gantt Chart.

1.1(9y ago)3483MITPHP

Since Oct 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/adzon/laravel-gantt)[ Packagist](https://packagist.org/packages/adzon/laravel-gantt)[ RSS](/packages/adzon-laravel-gantt/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (5)Used By (0)

Laravel Gantt Chart
===================

[](#laravel-gantt-chart)

[![License](https://camo.githubusercontent.com/78ce795f279c8c26dca75d517e3a103563cf2318b2ca7a90d1252742564dacdb/68747470733a2f2f706f7365722e707567782e6f72672f737761746b696e732f6c61726176656c2d67616e74742f6c6963656e7365)](https://packagist.org/packages/swatkins/laravel-gantt)

A Laravel 5.x package to display items within a Gantt chart (adapted from [bastianallgeier/gantti](https://github.com/bastianallgeier/gantti)).

[![Screenshot](https://github.com/swatkins/laravel-gantt/raw/master/src/assets/screenshot-gantt.png)](https://github.com/swatkins/laravel-gantt/raw/master/src/assets/screenshot-gantt.png)

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

[](#installation)

Require this package with composer:

```
composer require swatkins/laravel-gantt
```

After updating composer, add the ServiceProvider to the providers array in config/app.php

```
Swatkins\LaravelGantt\GanttServiceProvider::class,
```

Copy the package css file to your local css with the publish command:

```
php artisan vendor:publish --tag="gantt"
```

Usage
-----

[](#usage)

The model to display in the Gantt Chart will need to have properties of `label`, `start` and `end` at minimum.

- `label` is the string to display for the item
- `start` is a date or datetime (will need to pass this as a YYYY-MM-DD format)
- `end` is a date or datetime (will need to pass this as a YYYY-MM-DD format)

```
/**
 *  You'll pass data as an array in this format:
    $test_array = [
                      [
                        'label' => 'The item title',
                          'date' => [
                             [
                                 'start' => '2016-10-08',
                                 'end'   => '2016-10-14',
                                 'class' => '',
                             ],
                             [
                                 'start' => '2016-10-16',
                                 'end'   => '2016-10-19',
                                 'class' => '',
                             ]
                         ]

                     ]
                 ];
 */

$gantt = new Swatkins\LaravelGantt\Gantt($test_array, array(
    'title'      => 'Demo',
    'cellwidth'  => 25,
    'cellheight' => 35
));

return view('gantt')->with([ 'gantt' => $gantt ]);
```

### Display in your view

[](#display-in-your-view)

In your view, add the `gantt.css` file:

```

```

And then output the gantt HTML:

```
{!! $gantt !!}
```

Model Factory
-------------

[](#model-factory)

Here is a factory for creating test data for your projects. You can paste this into your `database/factories/ModelFactory.php` file and then run this via `tinker`. See .

```
$factory->define(App\Project::class, function (Faker\Generator $faker) {
    return [
        'title' => $faker->sentence(),
        'start' => $faker->dateTimeBetween('-30 days'),
        'end' => $faker->dateTimeBetween('now', '+30 days')
    ];
});
```

Attribution
-----------

[](#attribution)

This code is adapted from

License:
--------

[](#license)

MIT License -

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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.

###  Release Activity

Cadence

Every ~209 days

Total

2

Last Release

3342d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9563632?v=4)[A.](/maintainers/adzon)[@adzon](https://github.com/adzon)

---

Top Contributors

[![q76762](https://avatars.githubusercontent.com/u/45312272?v=4)](https://github.com/q76762 "q76762 (3 commits)")[![swatkins](https://avatars.githubusercontent.com/u/128742?v=4)](https://github.com/swatkins "swatkins (2 commits)")

### Embed Badge

![Health badge](/badges/adzon-laravel-gantt/health.svg)

```
[![Health](https://phpackages.com/badges/adzon-laravel-gantt/health.svg)](https://phpackages.com/packages/adzon-laravel-gantt)
```

###  Alternatives

[rmunate/php2js

Effortlessly share PHP Laravel values with external JavaScript files using just one command, thanks to the seamless integration of PHP2JS.

2058.2k](/packages/rmunate-php2js)

PHPackages © 2026

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