PHPackages                             2lenet/dashboard-bundle - 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. [Admin Panels](/categories/admin)
4. /
5. 2lenet/dashboard-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

2lenet/dashboard-bundle
=======================

Dashboard bundle, widgets

1.4.4(4y ago)18.5k↓90.6%2MITPHPPHP &gt;=7.2

Since Oct 15Pushed 3y ago5 watchersCompare

[ Source](https://github.com/2lenet/dashboard)[ Packagist](https://packagist.org/packages/2lenet/dashboard-bundle)[ RSS](/packages/2lenet-dashboard-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (28)Used By (0)

This bundle provides a dashboard with customizable widgets.

Install
-------

[](#install)

`composer require 2lenet/dashboard-bundle`

Setting up the bundle
---------------------

[](#setting-up-the-bundle)

Add this to services.yaml

```
App\Widgets\:
        resource: '../src/Widgets'
        tags: ['tkuska_dashboard.widget']
```

Add this to routes.yaml

```
dashboard_widgets:
    resource: "@TkuskaDashboardBundle/Resources/config/routes.yaml"
```

You also need to update your database to have widget table.

```
php bin/console make:migration
php bin/console doc:mi:mi

```

Making widgets
--------------

[](#making-widgets)

All your widget classes will lie in src/Widgets/.

They must extend AbstractWidget.

```
use Tkuska\DashboardBundle\Widgets\AbstractWidget;
```

Existing methods that can be overriden:

- \_\_construct: the constructor for usual services injection. You need at least a Twig\_Environment ($twig)
- getName: must return general name of the widget
- getJsonSchema: must return an array (that will be json encoded) that represents an Json Schema, for the widget configuration. (see also )
- getConfigForm: makes the configuration form. You shouldn't need to modify it, but it can happen in some cases (ex: bootstrap version)
- support: returns true if widget is supported. If not, user won't be able to add such widget nor render it
- supportsAjax: returns true if widget should be loaded asynchronously. If not, it will be loaded directly with the dashboard
- transformResponse: takes Response representing the widget as argument and returns response. By default, it caches widgets for 300 seconds.

You *must* implement the render() method.

This method returns simple HTML. You can use $twig-&gt;render("template.html.twig", array(...)). Your templates should extend the base widget template, because it has some interactions. Otherwise, make sure you implement those interactions.

```
{% extends '@TkuskaDashboard/widget/base_widget.html.twig' %}
```

Note that base template uses Bootstrap panels, which means it is better to put your widget body in a ``.

If you use the widget configuration (getJsonSchema) you must pass the form to the template with getConfigForm as 'form'.

This method renders the widget that is shown. All your logic should be in there.

cache
=====

[](#cache)

by default the cache is enable, you can change timeout and key with

```
public function getCacheKey():string{
    return $this->getId() . "_".md5($this->config);
}

public function getCacheTimeout():int {
    return 300;
}
```

above you see the default return.

If you want disable the cache for a widget getCacheTimeout have to return 0.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 57.5% 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 ~59 days

Recently: every ~194 days

Total

23

Last Release

1522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b715c92f6219caaeecb8f1a8d511ebfa17f05c2b868875dbefaaf95c0dd0df91?d=identicon)[sebheitzmann](/maintainers/sebheitzmann)

---

Top Contributors

[![SpaghettiBolognaise](https://avatars.githubusercontent.com/u/31731763?v=4)](https://github.com/SpaghettiBolognaise "SpaghettiBolognaise (50 commits)")[![sebheitzmann](https://avatars.githubusercontent.com/u/2197902?v=4)](https://github.com/sebheitzmann "sebheitzmann (27 commits)")[![tkuska](https://avatars.githubusercontent.com/u/1619751?v=4)](https://github.com/tkuska "tkuska (6 commits)")[![QuentinHAETTEL](https://avatars.githubusercontent.com/u/55276836?v=4)](https://github.com/QuentinHAETTEL "QuentinHAETTEL (3 commits)")[![jperat](https://avatars.githubusercontent.com/u/15955170?v=4)](https://github.com/jperat "jperat (1 commits)")

---

Tags

dashboard

### Embed Badge

![Health badge](/badges/2lenet-dashboard-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/2lenet-dashboard-bundle/health.svg)](https://phpackages.com/packages/2lenet-dashboard-bundle)
```

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[digital-creative/nova-dashboard

The missing dashboard for nova.

7171.8k1](/packages/digital-creative-nova-dashboard)[eliseekn/laravel-metrics

Generate easily metrics and trends data of your models for your dashboards.

1347.7k](/packages/eliseekn-laravel-metrics)[jubeki/nova-card-linkable

A Linkeable Card for the Laravel Nova Dashboard.

19277.1k](/packages/jubeki-nova-card-linkable)[plastyk/dashboard

An extendable dashboard for Silverstripe

2045.0k2](/packages/plastyk-dashboard)[putyourlightson/craft-dashboard-begone

Removes the dashboard and redirects users to entries.

1180.6k1](/packages/putyourlightson-craft-dashboard-begone)

PHPackages © 2026

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