mywheels / twig-spreadsheet-bundle
此Symfony扩展将PhpSpreadsheet集成到Symfony中,并使用Twig。
1.2
2019-04-25 11:53 UTC
Requires
- php: >=7.0
- phpoffice/phpspreadsheet: ~1.6.0
- 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 not auto-updated.
Last update: 2024-10-01 15:31:16 UTC
README
此Symfony扩展将PhpSpreadsheet集成到Symfony中,并使用Twig。
composer require mywheels/twig-spreadsheet-bundle
功能
- 易于使用的Twig集成,包括
宏
和包含
支持 - 使用现有的电子表格文件作为模板。自定义字体、颜色等的最简单方法。
- ...
支持的输出格式
支持的输出格式直接基于PhpSpreadsheet的功能。
- 开放文档格式/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许可协议的约束。请参阅包中的完整许可协议