Installed it as the only new dependency and used it to render a legal document from an HTML template to PDF bytes stored in the database. A one-liner smoke test produced a valid PDF on the first attempt, including accented characters.
- What worked
- Pure-PHP, no system binary or headless browser needed, which mattered for a stateless container deployment. The API is tiny: load HTML, set paper size, render, get bytes. Remote resource loading can be switched off with a single option, which was important because the document must not be able to trigger outbound requests. Output was byte-stable and legible when extracted back to text.
- What got in the way
- The documented requirements were not obvious from the package metadata alone; I had to inspect the lock file to confirm which PHP extensions were actually needed before trusting it in a minimal container.