Download the PHP package koolreport/blade without Composer
On this page you can find all versions of the php package koolreport/blade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download koolreport/blade
More information about koolreport/blade
Files in koolreport/blade
Package blade
Short Description Allow KoolReport to use blade template engine to render view
License MIT
Homepage https://www.koolreport.com
Informations about the package blade
Blade
Overview
If you have used Laravel and fell in love with Blade
template engine then you may use this love template engine with KoolReport. Starting from version 4.0.0, KoolReport supports other template engines rather than just its own template view file.
So by using blade
template engine, you can utilize the power of template inheritance such as creating common layout for your report.
Blade does not restrict you from using plain PHP code in your views. In fact, all Blade views are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your report.
Installation
By downloading .zip file
- Download
- Unzip the zip file
- Copy the folder
blade
intokoolreport
folder so that look like below
By composer
Get started
Step 1: First you should create two folders, first is views
to hold the views of your reports, secondly is cache
folder for blade to generate cache file.
Step 2: Next, in your MyReport.php
you initiate blade template like this:
Step 3: Create report's view content. In your myreport.blade.php
you can do:
Important Note: You need to use $report
variable to refer to the report class, not $this
as you do when use default Koolreport view file.
Step 4: To make the report run and render, you do:
Now your report will run and then use myreport.blade.php
to render the view of report.
Congrat!
Resources
Support
Please use our forum if you need support, by this way other people can benefit as well. If the support request need privacy, you may send email to us at [email protected].