mattfanz / twig-spreadsheet-bundle
此 Symfony 扩展将 PhpSpreadsheet 集成到 Symfony 中,通过 Twig 实现。
1.1
2018-07-29 19:21 UTC
Requires
- php: >=7.0
- phpoffice/phpspreadsheet: ~1.3.1
- symfony/framework-bundle: ~3.2|~4.0
- twig/twig: ~2.0
Requires (Dev)
- mpdf/mpdf: ~7.0
- phpunit/phpunit: ^6.5
- sensio/framework-extra-bundle: ~3.0|~4.0
- symfony/phpunit-bridge: ~4.0
- symfony/symfony: ~3.2|~4.0
Suggests
- mpdf/mpdf: Add support for PDF rendering, requires ~7.0
This package is auto-updated.
Last update: 2024-09-06 10:08:31 UTC
README
此 Symfony 扩展将 PhpSpreadsheet 集成到 Symfony 中,通过 Twig 实现。
特性
- 简单易用的 Twig 集成,包括
宏
和包含
支持 - 使用现有的电子表格文件作为模板。自定义字体、颜色等的最简单方式。
- ...
支持的输出格式
支持的输出格式直接基于 PhpSpreadsheet 的功能。
- Open Document Format/OASIS (.ods)
- Office Open XML (.xlsx) Excel 2007 及以上版本
- BIFF 8 (.xls) Excel 97 及以上版本
- CSV
- PDF(使用需要单独安装的 mPDF)
软件要求
使用 PhpSpreadsheet/TwigSpreadsheetBundle 需以下软件。
此扩展所需
- PHP 7.0 或更高版本
- Symfony 3.2 或更高版本
PhpSpreadsheet 所需
- PHP 扩展 php_zip 启用
- PHP 扩展 php_xml 启用
- PHP 扩展 php_fileinfo 启用
- PHP 扩展 php_gd2 启用(可选,但需要精确计算列宽)
文档
文档的源代码存储在此扩展的 Resources/doc/ 文件夹中。
你可以在 readthedocs.org 找到更美观的版本。
https://twigspreadsheetbundle.readthedocs.org
安装
所有安装说明都位于文档中。
许可证
此扩展遵循 MIT 许可证。请参阅包中的完整许可证。