This repository contains the source code of the examples of usage Stimulsoft Reports.PHP reporting tool in the PHP Laravel application, using HTML/PHP code and JavaScript components. The report builder is fully compatible with Laravel 12 and higher, uses Blade templates, and a controller to handle events for embedding components.
This repository has a standard Laravel web project with Report Viewer and Report Designer components, as well as several sample reports.
The folder contains all the scripts and resources of the project. So all files from this folder must be copied to your PHP server, using FTP or HTTP access interface - depending on your hosting provider.
To download all dependencies, please use the commands:
composer install
npm install
npm run build
To run the project, please use the command:
composer run dev
After that, the web project is available at:
http://127.0.0.1:8000/
For more information, see the documentation on working with Laravel framework.
To add Stimulsoft components to your Laravel application, just follow a few simple steps. The instructions have been tested on the Laravel 12 starter project.
- Add the Stimulsoft library dependency using the Composer manager:
composer require stimulsoft/reports-php
- Add Stimulsoft service provider to the
\bootstrap\providers.php
file:
Stimulsoft\Laravel\StiServiceProvider::class
- Add the Blade component template, for example:
\resources\views\viewer.blade.php
- Add the component controller and set the necessary events, for example:
\app\Http\Controllers\HandlerController.php
- Add the necessary routes to the Blade template and controller in the
\routes\web.php
file:
use App\Http\Controllers\HandlerController;
Route::get('/viewer', function () {
return view('viewer');
});
Route::any('/handler', [HandlerController::class, 'process']);
- Everything is ready, you can launch the application and work with Stimulsoft reports:
composer run dev
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 report engine, rich and intuitive interface, simple integration and deployment process, and an easy and understandable licensing model.