I got the error
Uncaught Error: Class 'PhpOffice\PhpSpreadsheet\IOFactory' not found in ...\vendor\koolreport\core\src\excel\ExcelDataSource.php:91.
this is my calling:
use \koolreport\excel\ExcelDataSource;
class saleReport extends \koolreport\koolreport
{
use \koolreport\clients\jQuery;
use \koolreport\clients\Bootstrap;
use \koolreport\clients\BootstrapCSS;
public function settings()
{
return array(
"dataSources" => array(
"check"=>array(
'filePath' => 'excel-data.xlsx',
"class"=>ExcelDataSource::class,
),
)
);
}
protected function setup()
{
$this->src("check")
->pipe($this->dataStore("check"));
}
}