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. Supports building and exporting a report on the server side using the Node.js platform. The reporting components are fully compatible with all versions of PHP 7 and PHP 8. 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:
- Rendering a Report from Code
- Rendering a Report from Code on a Button Click
- Printing a Report from Code
- Exporting a Report from Code
- Changing Report Properties on the Server-Side
- Configuring and Installing Node.js
- Rendering a Report from Code on the Server-Side
- Rendering a Report with SQL from Code on the Server-Side
- Exporting a Report from Code on the Server-Side
- Registering a Data from Code when Rendering a Report on the Server-Side
- Exporting a Report from Code with Changing Export Settings
- Showing a Report in the Viewer
- Showing a Report in the Viewer in an HTML template
- Showing a Report in the Viewer in an HTML template using PHP variables
- Showing a Report in the Viewer using JavaScript
- Changing the Viewer Theme
- Registering a Data from Code
- Setting Report Variables on the Server-Side
- Using SQL Data Sources
- Using Parameters in SQL Query
- Sending a Report by Email
- Changing an Export Settings on the Server-Side
- Sending an Exported Report to the Server-Side
- Opening the Report in the Viewer and Changing it on the Server-Side
- Editing a Report Template in the Designer
- Editing a Report Template in the Designer in an HTML template
- Editing a Report Template in the Designer using JavaScript
- Saving a Report Template on the Server-Side
- Registering Data when Creating a New Report
- Localizing the Designer
- Loading Scripts in Part to Minify Project
- Working with onDesign and onExit events
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.