TwigSpreadsheetLibrary (based on TwigSpreadsheetBundle)
This library integrates PhpSpreadsheet into Twig.
- Easy to use Twig integration including
macro
andinclude
support - Use existing spreadsheet files as templates. The easiest way to customize fonts, colors, etc.
- ...
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 mPDF, which need to be installed separately)
The following software is required to use PhpSpreadsheet/TwigSpreadsheetBundle.
Required by this library:
- PHP 7.0 or newer
- symfony/filesystem 3.4 or newer
- symfony/twig-bridge 3.4 or newer
- twig 2.0 or newer
- phpoffice/phpspreadsheet 1.5 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)
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
All the installation instructions are located in the documentation.
This bundle is under the MIT license. See the complete license in the bundle: