this is my script that I have adjusted to the standard excel data source example koolreport
<?php
require ROOT_PATH."/gsapi/vendor/koolreport/core/autoload.php";
use \koolreport\excel\ExcelDataSource;
class tes extends \koolreport\KoolReport{
public function settings()
{
return array(
"dataSources"=>array(
"read_excel"=>array(
"class"=>ExcelDataSource::class,
"filePath"=>dirname(__FILE__)."\\"."temp\data_tes.xlsx"
)
)
);
}
public function setup()
{
$result = $this->src('read_excel')
->pipe($this->dataStore("data_tes.excel"));
}
}
$param = file_get_contents("php://input");
$cls = new tes;
$cls->run()->render();
?>
and this is the result
<br />
<b>Fatal error</b>: Uncaught Error: Class 'PhpOffice\PhpSpreadsheet\IOFactory'
not found in D:\PhpProject\gsapi\vendor\koolreport\excel\ExcelDataSource.php:91
Stack trace:
#0 D:\PhpProject\gsapi\vendor\koolreport\core\src\KoolReport.php(315):
koolreport\excel\ExcelDataSource->start()
#1 D:\PhpProject\gsapi\pltfrm\manifest\tes.php(30):
koolreport\KoolReport->run()
#2 {main}
thrown in <b>D:\PhpProject\gsapi\vendor\koolreport\excel\ExcelDataSource.php</b>
on line <b>91</b><br />