Changing an Export Settings on the Server-Side

Customize a dashboard export on the PHP server through onBeginExportReport.

Changing Dashboard Properties on the Server-Side

Use onOpenedReport in PHP to change dashboard properties before the viewer renders it.

Changing the Viewer Theme

The dashboard viewer supports many themes, set on the PHP options object.

Configuring and Installing NodeJs

Install and configure the Node.js runtime required by the Dashboards.PHP server engine.

Editing a Dashboard Template in the Designer

The Dashboards.PHP designer runs in the browser, served by the PHP SDK. This example opens the designer with a dashboard loaded for editing.

Editing a Dashboard Template in the Designer in an HTML template

The designer's scripts and body can be emitted separately to fit your own HTML layout.

Editing a Dashboard Template in the Designer using JavaScript

The designer can be created entirely in JavaScript, with PHP acting only as the request handler.

Exporting a Dashboard from Code

A dashboard can be exported from PHP code to formats such as PDF, Excel or an image. This example renders a dashboard and exports it.

Exporting a Dashboard from Code on the Server-Side

Dashboards.PHP can render and export dashboards fully on the server using an embedded Node.js engine. This example exports to a file.

Exporting a Dashboard from Code with Changing Export Settings

Server-side dashboard exports can be fine-tuned with a settings object. This example exports to PDF with custom metadata.

How to Activate the Product

Register the Stimulsoft license when the PHP application starts, before creating any dashboard components.

Loading Scripts in Part to Minify Project

Dashboards.PHP is modular: you can load only the script parts your page needs to keep the download small.

Localizing the Designer

The designer interface can be shown in different languages, with several localization files at once.

Opening the Dashboard in the Viewer and Changing it on the Server-Side

Use onOpenedReport in Dashboards.PHP to replace or modify a dashboard before the viewer displays it.

Printing a Dashboard from Code

Print a dashboard from PHP by configuring the viewer and invoking its print workflow after the dashboard template has been loaded and processed.

Registering a Data from Code

Data can be registered for the dashboard just before it renders, through the onBeforeRender event.

Registering a Data from Code when Exporting a Dashboard on the Server-Side

Render the dashboard in PHP and export it directly from code, without opening the viewer.

Registering Data when Creating a New Dashboard

When a user creates a new dashboard in the designer, you can automatically register data for it through the onCreateReport event.

Saving a Dashboard Template on the Server-Side

When the user saves in the designer, the dashboard is sent to the server where you decide how to store it, through the onSaveReport event.

Sending an Exported Dashboard to the Server-Side

When the user exports a dashboard, the result can be sent back to the server and saved, through the onEndExportReport event.

Showing a Dashboard in the Viewer

The Dashboards.PHP viewer is created on the server with the PHP SDK, which outputs the JavaScript viewer into the page.

Showing a Dashboard in the Viewer in an HTML template

Place the Dashboards.PHP viewer in an HTML template by rendering its scripts in the head and its markup in the body.

Showing a Dashboard in the Viewer in an HTML template using PHP variables

The viewer's HTML can be captured into PHP variables and echoed wherever you need — handy for templating engines.

Showing a Dashboard in the Viewer using JavaScript

Prepare a dashboard in PHP, then display it in a target element with the generated JavaScript viewer.

Using SQL Data Sources

Dashboards can pull data from SQL databases, with the connection handled on the server through the onBeginProcessData event.

Working with onDesign and onExit events

The viewer and designer can be combined into one edit-and-preview workflow using their onDesignReport and onExit events.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.