artemeon/officegen

通过外部库生成报告的桥梁

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

This package is auto-updated.

Last update: 2024-09-13 11:32:45 UTC


README

该组件提供了一个通过外部库生成报告的途径。例如,我们可以使用apache POI库来生成特定的报告。该组件的主要类是Processor类,您可以在您的DI容器中轻松注册。

$reportFile = "my_report.docx";

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