santwer/exporter
Composer 安装命令:
composer require santwer/exporter
包简介
Laravel Package for easy Word exports in Laravel on given Templates. This package is based on PHPWord.
README 文档
README
Laravel package for exporting Word templates with placeholders as .docx or .pdf. Based on phpoffice/phpword.
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 in the docs.
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.
统计信息
- 总下载量: 2.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-23