PHP code example of stimulsoft / reports-php

1. Go to this page and download the library: Download stimulsoft/reports-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 / reports-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/SimpleList.mrt');
    $viewer->report = $report;
    $viewer->renderHtml();

composer