This repository contains examples of integrating the Stimulsoft Dashboards.PHP analytics 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 Designer Theme
- Editing a Dashboard in the Designer
- Editing a Dashboard in the Designer using JavaScript
- Exporting a Dashboard from Code
- How to Activate the Product
- Loading Scripts in Part to Minify Project
- Localizing the Designer
- Registering a Data from Code
- Saving a Dashboard on the Server-Side
- Sending an Exported Dashboard to the Server-Side
- Showing a Dashboard in the Viewer
- Showing a Dashboard in the Viewer using JavaScript
- 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 require stimulsoft/dashboards-php
Stimulsoft Dashboards.PHP is a complete software package for designing and viewing dashboards. You may use the tool for integration into your applications or as a standalone solution. At the same time, no complex configuration or third-party modules are required. You may easily integrate dashboards into almost any PHP application, including those built on the Laravel framework.