stimulsoft/dashboards-php

Stimulsoft Dashboards.PHP

2025.1.1 2024-12-13 12:11 UTC

README

Stimulsoft Dashboards.PHP is a complete software package for designing and viewing dashboards. You may use the tool for integration into your applications or as a standalone solution. At the same time, no complex configuration or third-party modules are required. You may easily integrate dashboards into almost any PHP application, including those built on the Laravel framework.

Installation

You can add the necessary libraries using the command:

composer require stimulsoft/dashboards-php

Usage

To work with the dashboard viewer, use the following code:

<?php
require_once 'vendor/autoload.php';
 
use Stimulsoft\Report\StiReport;
use Stimulsoft\Viewer\StiViewer;
 
$viewer = new StiViewer();
$viewer->process();
 
$report = new StiReport();
$report->loadFile('reports/SimpleDashboard.mrt'); 
$viewer->report = $report;
 
$viewer->printHtml();
?>

To work with the dashboard designer, use the following code:

<?php
require_once 'vendor/autoload.php';
 
use Stimulsoft\Report\StiReport;
use Stimulsoft\Designer\StiDesigner;
 
$designer = new StiDesigner();
$designer->process();
 
$report = new StiReport();
$report->loadFile('reports/SimpleDashboard.mrt'); 
$designer->report = $report;
 
$designer->printHtml();
?>

These code examples are basic. There are many features, options, and other variations. For details, see our examples and documentation. For more details, please see our examples and documentation.

Useful links: