This repository contains examples of integrating the Stimulsoft Reports.PHP reporting tool into PHP applications, using a set of PHP classes and functions that allow you to easily add a JavaScript report generator to PHP applications. The reporting components are fully compatible with PHP 5, PHP 7, and PHP 8 versions. The integration supports PHP and JavaScript code.
This repository contains a PHP project ready to run. The 'index.php' file contains links to examples, each of which is located in a separate .php file:
- Changing the Viewer Theme
- Editing a Report Template in the Designer
- Editing a Report Template in the Designer using JavaScript
- Exporting a Report from Code
- How to Activate the Product
- Loading Scripts in Part to Minify Project
- Localizing the Designer
- Registering a Data from Code
- Rendering a Report from Code
- Saving a Report Template on the Server-Side
- Sending a Report by Email
- Sending an Exported Report to the Server-Side
- Setting Report Variables on the Server-Side
- Showing a Report in the Viewer
- Showing a Report in the Viewer using JavaScript
- Using Parameters in SQL Query
- Using SQL Data Sources
One event handler has been created with all the necessary events for each example:
The samples folder contains all the scripts and resources of the project, including the 'index.php' file. So all files from this folder are required to be copied on your PHP server, using FTP or HTTP access interface - depending on your hosting provider.
After that, in your browser, you can navigate to the following address:
http://your-domain-name/index.php
If you are using a PHP server installed on your local development computer:
http://localhost/index.php
Additionally, the examples are ready to work with the Composer dependency manager. You can use the specified command to update the product and all dependencies to the latest available version:
composer update 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.