This Symfony bundle provides a PhpExcel integration for Twig.
Supported output formats
The supported output formats are directly based on the capabilities of PhpExcel.
- .CSV (only basic data output)
- .ODS (only basic data output)
- .PDF (requires mPDF)
- .XLS (limited functionality)
The following software is required to use PHPExcel/TwigExcelBundle.
Required by this bundle:
- PHP 5.5.9 or newer (PHP 7.1.0 or newer is not supported by PhpExcel)
- Symfony 2.7 (LTS) or newer
Required by PhpExcel:
- PHP extension php_zip enabled
- PHP extension php_xml enabled
- PHP extension php_gd2 enabled (if not compiled in)
The source of the documentation is stored in the Resources/doc/ folder in this bundle:
You can find a prettier version on 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:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# Pre-calculating formulas can be slow in certain cases. Disabling this option can improve the performance but the resulting documents won't show the result of any formulas when opened in a external spreadsheet software.
# Using disk caching can improve memory consumption by writing data to disk temporary. Works only for .XLSX and .ODS documents.
disk_caching_directory: ~ # Example: /tmp