santwer/exporter

Laravel Package for easy Word exports in Laravel on given Templates. This package is based on PHPWord.

Maintainers

Package info

github.com/santwer/Exporter

pkg:composer/santwer/exporter

Statistics

Installs: 1 383

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v0.5.0.0 2026-03-21 09:39 UTC

README

Laravel package for exporting Word templates with placeholders as .docx or .pdf. Based on phpoffice/phpword.

Commit Activity Total Downloads Latest Stable Version License

Installation

composer require santwer/exporter

For PDF export, LibreOffice must be installed. See the full documentation.

Full documentation

Full documentation: santwer.github.io/Exporter/ ยท Source: github.com/santwer/Exporter. The docs cover installation, configuration, export classes, template syntax, charts, images, tables, and more.

Quick example

use Santwer\Exporter\Facade\WordExport;

WordExport::download(new MyExport(), 'export.docx');

Create an export class that implements FromWordTemplate (and optional concerns like GlobalTokens, TokensFromCollection). See the docs for export classes, template syntax, and configuration.

License

This package is licensed under the MIT License.