Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jasmel's avatar

how to export blade to docx format?

Iam trying to export word documents from my blade template.It was easy for me to export in pdf format since dompdf supports blade to PDF conversion.But phpWord doesn't i think.Could anybody help me,how can i solve this particular issue.

0 likes
1 reply
ChristophHarms's avatar

You could render your blade to HTML first, then use something like phpdocx to convert that HTML to a Word document.

Please or to participate in this conversation.