PHP code example of stimulsoft / dashboards-php

1. Go to this page and download the library: Download stimulsoft/dashboards-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

stimulsoft / dashboards-php example snippets




<head>

    $js = new \Stimulsoft\StiJavaScript(\Stimulsoft\StiComponentType::Viewer);
    $js->renderHtml();

<script>

    $handler = new \Stimulsoft\StiHandler();
    $handler->renderHtml();

<script>

    $viewer = new \Stimulsoft\Viewer\StiViewer();
    $report = new \Stimulsoft\Report\StiReport();
    $report->loadFile('reports/SimpleDashboard.mrt');
    $viewer->report = $report;
    $viewer->renderHtml();

composer