artemeon/officegen

Bridge to generate reports through an external library

v0.1.0 2018-09-12 08:26 UTC

This package is auto-updated.

Last update: 2024-12-13 12:02:24 UTC


README

Bridge component which provides a way to generate a report through an external library. I.e. we can use the apache POI library to generate specific reports. The main class of the component is the Processor class which you can easily register in your DI container.

$reportFile = "my_report.docx";

$generator = new BlackHole();
$processor = new Processor($generator);
$processor->execute("TestReport", $reportFile, ["foo" => "bar"]);