ambengers/eloquent-word
Generate Microsoft Word documents directly from your Eloquent models with ambengers/eloquent-word. Build templated reports and exports in PHP, mapping model attributes to Word content without extra tooling.
ambengers/eloquent-word lets a Laravel app render Eloquent models (or collections) into .docx files, so "export record to Word" features — contracts, letters, statements, customer-facing reports, internal record exports — can be scoped as a thin model/template layer rather than a document-generation project.Adopt when most of the following hold:
composer.json requirements before committing.Look elsewhere when:
.docx templating (content controls, conditional sections authored by non-developers in Word). Going directly to PHPWord or a commercial doc-generation SaaS gives more control than a thin wrapper.For executives (one paragraph): We can ship Word-document export from our existing record data with a small, low-cost open-source Laravel package instead of building a document pipeline. The new 5.0 release adds Laravel 10 support, which is the gate for our framework upgrade — but it is a major version, so it drops support for older Laravel versions and must land together with that upgrade, not before it. Main risk is dependency maintenance (single-maintainer project, infrequent releases); mitigation is low switching cost and a small integration surface. Recommendation: adopt for straightforward templated Word exports, keep PDF/print-perfect and high-volume needs on a separate track.
For engineering (bullets):
composer.json constraints for laravel/framework and phpoffice/phpword before upgrading.How can I help you explore Laravel packages today?