k7 / twig-spreadsheet-bundle
此Symfony扩展将PhpSpreadsheet集成到Symfony中,通过Twig使用。
1.7.5
2021-06-22 16:50 UTC
Requires
- php: >=7.1
- phpoffice/phpspreadsheet: ~1.18
- symfony/framework-bundle: ~3.4|~4.0
- twig/twig: ~2.0
Requires (Dev)
- mpdf/mpdf: ~7.0
- phpunit/phpunit: ^7.5
- sensio/framework-extra-bundle: ~3.0|~4.0
- symfony/phpunit-bridge: ^4.0
- symfony/symfony: ~3.4|~4.0
Suggests
- mpdf/mpdf: Add support for PDF rendering, requires ~7.0
README
此Symfony扩展将PhpSpreadsheet集成到Symfony中,通过Twig使用。
特性
- 易于使用的Twig集成,包括对
macro
和include
的支持 - 使用现有的电子表格文件作为模板。自定义字体、颜色等的最简单方式。
- ...
支持的输出格式
支持的输出格式直接基于PhpSpreadsheet的功能。
- 开放文档格式/OASIS (.ods)
- 办公开放XML (.xlsx) Excel 2007及以上版本
- BIFF 8 (.xls) Excel 97及以上版本
- CSV
- PDF(使用mPDF,需要单独安装)
软件要求
使用PhpSpreadsheet/TwigSpreadsheetBundle需要以下软件。
此扩展所需
- PHP 7.1或更高版本
- Symfony 3.4或更高版本
PhpSpreadsheet所需
- PHP扩展php_zip已启用
- PHP扩展php_xml已启用
- PHP扩展php_fileinfo已启用
- PHP扩展php_gd2已启用(可选,但需要精确计算列宽)
文档
文档的源代码存储在此扩展的Resources/doc/文件夹中
您可以在readthedocs.org上找到更美观的版本
https://twigspreadsheetbundle.readthedocs.org
安装
所有安装说明都位于文档中。
许可证
此扩展采用MIT许可证。请参阅扩展中的完整许可证