Download the PHP package kalakotra/silverstripe-dashboard without Composer
On this page you can find all versions of the php package kalakotra/silverstripe-dashboard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kalakotra/silverstripe-dashboard
More information about kalakotra/silverstripe-dashboard
Files in kalakotra/silverstripe-dashboard
Package silverstripe-dashboard
Short Description Reusable, extensible Dashboard module for SilverStripe 6 CMS
License MIT
Informations about the package silverstripe-dashboard
SilverStripe 6 Dashboard Module
Reusable, extensible CMS Dashboard for SilverStripe 6.
Widgets are defined in code, registered via YAML config, and rendered inside a responsive CSS Grid layout.
Requirements
| Dependency | Version |
|---|---|
| PHP | ^8.2 |
| silverstripe/framework | ^6.0 |
| silverstripe/admin | ^3.0 |
Installation
Module Structure
Creating a Custom Widget
1 — Extend a base widget class
2 — Register via YAML
3 — Run dev/build
Widget Width Reference
| Constant | CSS Class | Grid Span | Use Case |
|---|---|---|---|
WidgetWidth::Full |
dashboard-widget--full |
5 / 5 | Stats rows, charts |
WidgetWidth::Half |
dashboard-widget--half |
3 / 5 | Tables, charts |
WidgetWidth::Third |
dashboard-widget--third |
2 / 5 | Lists, notifications |
WidgetWidth::Quarter |
dashboard-widget--quarter |
2 / 5 | Progress, compact data |
WidgetWidth::Fifth |
dashboard-widget--fifth |
1 / 5 | Quick actions |
Widget Types
StatsWidget
KPI tiles with value, label, trend indicator and accent colour.
Override getStats(): array.
TableWidget
Paginated data table with configurable columns and optional CMS deep-links.
Override getColumns(): array and getRows(): SS_List|array.
ListWidget
Scrollable item list with icons, subtitles and badges.
Override getItems(): SS_List|array.
ChartWidget
Chart.js 4 chart (bar, line, pie, doughnut, radar).
Override getChartData(): array and optionally getChartOptions(): array.
ActionWidget
Quick-action buttons/links in list or grid layout.
Override getActions(): array.
NotificationWidget
Timestamped notification feed with unread count badge.
Override getNotifications(): array. Supports AJAX refresh.
ProgressWidget
Labelled progress bars with semantic colour states.
Override getBars(): array.
ServerLogStatsWidget (example)
Reads server access logs and shows requests, unique IPs, top URL, and error totals.
Config options:
- Environment variable:
DASHBOARD_ACCESS_LOG=/absolute/path/to/access.log - YAML override:
TextWidget
Static HTML/text block.
Override getContent(): string or set $content property.
Permissions
Caching
AJAX Refresh
Widgets opt-in to AJAX refresh by returning true from supportsRefresh():
The frontend automatically adds a refresh button to the widget header.
The endpoint is: GET /admin/dashboard/widgetRefresh/{Identifier}
You can also trigger programmatic refresh from JavaScript:
Running Tests
License
MIT