KoolReport and CakePHP
Overview #
CakePHP is one of earliest and greatest MVC framework for PHP. CakePHP has reached version 4.x with great improvement toward modern standard. CakePHP provide clean code, fast speed and large support community.
KoolReport is reporting framework and can be integrated into CakePHP or any other MVC framework.KoolReport help you to create data report faster and easier.
In this repository, we would like to demonstrate how KoolReport can be used inside CakePHP.
Github Repository #
Please view our Github How to use KoolReport in CakePHP?.
Guide #
Installation #
Run composer command to install koolreport\core
composer require koolreport\core
Step to make reports #
- Inside
srcfolder, createReportsfolder to hold your reports - Create
MyReport.phpandMyReport.view.phpinsideReportsfolder. Please see the contents of two files in our repository. - Inside
webrootfolder, create folderkoolreport_assetsto hold resources created by KoolReport
Create controller and view #
In PagesController, create report() action:
public function report()
{
$report = new \App\Reports\MyReport;
$report->run();
$this->set("report",$report);
return $this->render();
}
Configure the routes inside config/routes.php
$builder->connect('/report', ['controller' => 'Pages', 'action' => 'report']);
All done!
View result #
Now you can access:
http://locahost/cakephp-example/report
you will see

Summary #
KoolReport is a great php reporting framework. You can use KoolReport alone with pure php or inside any modern MVC frameworks like CakePHP, Laravel, Symfony. If you have any questions regarding KoolReport, free free to contact us at our forum or email to support@koolreport.com.
Happy Reporting!
Get started with KoolReport
KoolReport will help you to construct good php data report by gathering your data from multiple sources, transforming them into valuable insights, and finally visualizing them in stunning charts and graphs.