use Kematjaya\Export\Manager\ExportManager;
use Kematjaya\Export\Processor\PDF\DOMPDFProcessor;
....
$data = '<h1>test pdf</h1>';
$manager = new ExportManager();
$doc = $manager->render($data, new DOMPDFProcessor('doc.pdf'));
render HTML to Excel
use Kematjaya\Export\Manager\ExportManager;
use Kematjaya\Export\Processor\Excel\HtmlToExcel;
....
$data = '<h1>test pdf</h1>';
$manager = new ExportManager();
$excel = $manager->render($data, new HtmlToExcel('doc.xls'));
render array to excel
use Kematjaya\Export\Manager\ExportManager;
use Kematjaya\Export\Processor\Excel\PHPSpreadsheetProcessor;
....
$data = [
['a', 'b', 'c']
];
$manager = new ExportManager();
$excel = $manager->render($data, new PHPSpreadsheetProcessor());
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.