harshbhardwaj/report-maker

The package takes a block of text and returns a word document

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2021-01-31 13:50 UTC

This package is auto-updated.

Last update: 2024-04-29 04:39:47 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.