recranet / twig-spreadsheet-bundle
This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.
Installs: 29 240
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 50
Type:symfony-bundle
Requires
- php: ^7.4|^8.0
- phpoffice/phpspreadsheet: ^1.22.0
- symfony/framework-bundle: ^5.4|^6.0
- symfony/twig-bridge: ^5.4|^6.0
- symfony/twig-bundle: ^5.4|^6.0
- twig/twig: ^3.0
Requires (Dev)
- doctrine/annotations: ^1.13
- mpdf/mpdf: ^8.1
- rector/rector: ^0.14.0
- symfony/browser-kit: ^5.4|^6.0
- symfony/phpunit-bridge: ^5.4|^6.0
- symfony/yaml: ^5.4|^6.0
Suggests
- dompdf/dompdf: Add support for PDF rendering using dompdf
- mpdf/mpdf: Add support for PDF rendering using mPDF
- tecnickcom/tcpdf: Add support for PDF rendering using TCPDF
This package is auto-updated.
Last update: 2024-04-18 10:31:07 UTC
README
This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.
Features
- Easy to use Twig integration including
macro
andinclude
support - Use existing spreadsheet files as templates. The easiest way to customize fonts, colors, etc.
- ...
Supported output formats
The supported output formats are directly based on the capabilities of PhpSpreadsheet.
- Open Document Format/OASIS (.ods)
- Office Open XML (.xlsx) Excel 2007 and above
- BIFF 8 (.xls) Excel 97 and above
- CSV
- PDF (using DOMPDF, TCPDF or mPDF)
Software requirements
The following software is required to use PhpSpreadsheet/TwigSpreadsheetBundle.
Required by this bundle:
- PHP 7.4 or newer
- Symfony 5.4 or 6.0 or newer
Required by PhpSpreadsheet:
- PHP extension php_zip enabled
- PHP extension php_xml enabled
- PHP extension php_fileinfo enabled
- PHP extension php_gd2 enabled (optional, but required for exact calculation of the column width)
Documentation
The source of the documentation is stored in the Resources/doc/ folder in this bundle:
You can find a prettier version on readthedocs.org:
https://twigspreadsheetbundle.readthedocs.org
Installation
All the installation instructions are located in the documentation.
License
This bundle is under the MIT license. See the complete license in the bundle: