Skip to content

Reports.PHP is a report generator intended to create, view, print, and export reports online using client-server technology. Includes the JS report engine, report designer and viewer. Support PHP 5, PHP 7, and PHP 8 versions.

License

Notifications You must be signed in to change notification settings

stimulsoft/Stimulsoft.Reports.PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stimulsoft Reports.PHP

Stimulsoft Reports.PHP is a report generator intended to create, view, print, and export reports online using client-server technology. The Stimulsoft report generator for PHP is a fast and powerful JavaScript report engine, rich and intuitive interface, simple integration and deployment process in PHP applications, and an easy and understandable licensing model.

Installation

You can add the necessary libraries using the command:

composer require stimulsoft/reports-php

Usage

To work with the report generator, use the following code:

<?php
require_once 'vendor/autoload.php';

use Stimulsoft\Report\StiReport;

$report = new StiReport();
$report->process();
$report->loadFile('reports/SimpleList.mrt');
$report->render();
$report->printHtml();
?>

To work with the report 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/SimpleList.mrt'); 
$viewer->report = $report;
 
$viewer->printHtml();
?>

To work with the report 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/SimpleList.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: