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 data visualization to PHP applications. Supports exporting a dashboard on the server side using the Node.js platform. The dashboard 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:
- Printing a Dashboard from Code
- Exporting a Dashboard from Code
- Changing Dashboard Properties on the Server-Side
- Configuring and Installing Node.js
- Exporting a Dashboard from Code on the Server-Side
- Registering a Data from Code when Exporting a Dashboard on the Server-Side
- Exporting a Dashboard from Code with Changing Export Settings
- Showing a Dashboard in the Viewer
- Showing a Dashboard in the Viewer in an HTML template
- Showing a Dashboard in the Viewer in an HTML template using PHP variables
- Showing a Dashboard in the Viewer using JavaScript
- Changing the Viewer Theme
- Registering a Data from Code
- Using SQL Data Sources
- Changing an Export Settings on the Server-Side
- Sending an Exported Dashboard to the Server-Side
- Opening the Dashboard in the Viewer and Changing it on the Server-Side
- Editing a Dashboard Template in the Designer
- Editing a Dashboard Template in the Designer in an HTML template
- Editing a Dashboard Template in the Designer using JavaScript
- Saving a Dashboard Template on the Server-Side
- Registering Data when Creating a New Dashboard
- 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/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.