PHPackages                             santwer/exporter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. santwer/exporter

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

santwer/exporter
================

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

v0.5.0.2(6d ago)12.4k2MITPHPPHP ^8.3|^8.4|^8.5CI passing

Since Jul 23Pushed 6d ago1 watchersCompare

[ Source](https://github.com/santwer/Exporter)[ Packagist](https://packagist.org/packages/santwer/exporter)[ RSS](/packages/santwer-exporter/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (14)Versions (27)Used By (0)

Word Template Exporter
======================

[](#word-template-exporter)

Laravel package for exporting Word templates with placeholders as `.docx` or `.pdf`. Based on [phpoffice/phpword](https://github.com/PHPOffice/PHPWord).

[![Commit Activity](https://camo.githubusercontent.com/81cf6253dbb00cc935686e09efe65e12a9e4aa2eb191d118315b3836198d7ae3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f6d2f73616e747765722f4578706f72746572)](https://github.com/santwer/Exporter)[![Total Downloads](https://camo.githubusercontent.com/1178e7baed7595c79d7a9becc07a1f76f8e9aeac1f520229b50485bfc7ae2d53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e747765722f6578706f72746572)](https://packagist.org/packages/santwer/exporter)[![Latest Stable Version](https://camo.githubusercontent.com/0831c65b63e596f36dba9e30a134fadd8a69a43dbd4eab1b06b778625b9de9ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e747765722f6578706f72746572)](https://packagist.org/packages/santwer/exporter)[![License](https://camo.githubusercontent.com/3cd49bc50dd169d7dcb96b8c8a3624bf63d90862b23dc0d06c057081ca65eaca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73616e747765722f6578706f72746572)](https://packagist.org/packages/santwer/exporter)

Installation
------------

[](#installation)

```
composer require santwer/exporter
```

For PDF export, LibreOffice must be installed. If conversion fails, the package logs DOCX XML analysis via `PDFConversionException` — see [PDF Troubleshooting](docs/pdf-troubleshooting.md) in the docs.

Full documentation
------------------

[](#full-documentation)

**Full documentation:** [santwer.github.io/Exporter/](https://santwer.github.io/Exporter/) · **Source:** [github.com/santwer/Exporter](https://github.com/santwer/Exporter). The docs cover installation, configuration, export classes, template syntax, charts, images, tables, and more.

Quick example
-------------

[](#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
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance98

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Recently: every ~6 days

Total

25

Last Release

6d ago

Major Versions

v0.4.9.3 → v4.9.x-dev2026-06-03

PHP version history (5 changes)v0.2.0PHP ^7.4|^8.0

v0.3.0PHP ^7.4|^8.0|^8.2|^8.2

v0.4.3PHP ^8.0|^8.2|^8.3|^8.3

v0.5.x-devPHP ^8.3|^8.4

v0.5.0.1PHP ^8.3|^8.4|^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39012551?v=4)[Sven Antwertinger](/maintainers/santwer)[@santwer](https://github.com/santwer)

---

Top Contributors

[![santwer](https://avatars.githubusercontent.com/u/39012551?v=4)](https://github.com/santwer "santwer (74 commits)")

---

Tags

docxdocx-generatordocx-templateexportlaravellaravel-packagepackagepdfpdf-documentpdf-generationphpphp8replace-textword

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/santwer-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/santwer-exporter/health.svg)](https://phpackages.com/packages/santwer-exporter)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3891.8k](/packages/codewithdennis-larament)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

781.2M17](/packages/pontedilana-php-weasyprint)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
