harshbhardwaj / report-maker
The package takes a block of text and returns a word document
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- phpoffice/phpword: ^0.17.0
Requires (Dev)
- symfony/config: ^5.2
- symfony/dependency-injection: ^5.2
- symfony/http-kernel: ^5.2
- symfony/yaml: ^5.2
This package is auto-updated.
Last update: 2025-04-29 01:04:22 UTC
README
A package to convert a block of text into a word document (link).
Some key points:
-
The Medium Article was implemented in its entirety.
-
The Zip Archive constantly threw errors. So overcame that by adding the line:
\PhpOffice\PhpWord\Settings::setZipClass(\PhpOffice\PhpWord\Settings::PCLZIP);
in DocumentFormatter.php. -
The sample backend uses the route
/reports
for processing the text and not/report
(which was mentioned in the article). -
So the final command should be:
http://localhost:8000/reports?text=We_are_done!
which works just fine.