Dear Team, i download koolreport and unzip it but it show me below error
Fatal error: Uncaught Error: Class 'koolreport\core\Node' not found in C:\xampp1\htdocs\reports\salereport\koolreport\core\src\core\DataSource.php:25 Stack trace: #0 C:\xampp1\htdocs\reports\salereport\koolreport\core\autoload.php(29): include_once() #1 [internal function]: {closure}('koolreport/core...') #2 C:\xampp1\htdocs\reports\salereport\koolreport\core\src\datasources\PdoDataSource.php(45): spl_autoload_call('koolreport\\core...') #3 C:\xampp1\htdocs\reports\salereport\koolreport\core\autoload.php(29): include_once('C:\\xampp1\\htdoc...') #4 [internal function]: {closure}('koolreport/data...') #5 C:\xampp1\htdocs\reports\salereport\koolreport\core\src\KoolReport.php(264): spl_autoload_call('koolreport\\data...') #6 C:\xampp1\htdocs\reports\salereport\SaleReport.php(33): koolreport\KoolReport->src('automaker') #7 C:\xampp1\htdocs\reports\salereport\koolreport\core\src\KoolReport.php(100): SaleReport->setup() #8 C:\xampp1\htdocs\reports\salereport\index.php(6): koolreport\KoolReport->__construct() #9 {main} thrown in C:\xampp1\htdocs\reports\salereport\koolreport\core\src\core\DataSource.php on line 25
index.php
<?php
require_once "autoload.php";
require_once "SaleReport.php";
$report = new SaleReport;
$report->run()->render();
SaleReport.php
<?php
require_once __DIR__."\koolreport\core\autoload.php";
require_once __DIR__."\koolreport\core\src\KoolReport.php";
use \koolreport\KoolReport;
use \koolreport\processes\Filter;
use \koolreport\processes\TimeBucket;
use \koolreport\processes\Group;
use \koolreport\processes\Limit;
class SaleReport extends KoolReport{
//create setting
protected function settings()
{
return array(
"dataSources"=>array(
"automaker"=>array(
"connectionString"=>"mysql:host=localhost;dbname=automaker",
"username"=>"root",
"password"=>"",
"charset"=>"utf8mb4_general_ci"
)
)
);
}
protected function setup()
{
$this->src("automaker")
->query("
SELECT customers.CustomerName, sum(payment.ammount) as saleamount
FROM payment
JOIN customers ON customers.customer_number = payment.customer_number
GROUP BY customers.customerName
")
->pipe($this->dataStore("result"));
}
}