Download the PHP package liuggiowetak/excelbundle without Composer
On this page you can find all versions of the php package liuggiowetak/excelbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download liuggiowetak/excelbundle
More information about liuggiowetak/excelbundle
Files in liuggiowetak/excelbundle
Package excelbundle
Short Description This is a Symfony2 Bundle helps you to read and write Excel files (including pdf, xlsx, odt), thanks to the PHPExcel library
License MIT
Homepage http://www.welcometothebundle.com
Informations about the package excelbundle
Symfony2 Excel bundle
This bundle permits you to create, modify and read excel objects.
License
Version 2
This is the shiny new version. There is a big BC with the 1.* version, but unit tests, functional tests, and the new factory is very simple to use.
Version 1.*
If you have installed an old version, and you are happy to use it, you could find documentation and files in the tag v1.0.6, browse the code.
Things to know:
CSV is faster so if you have to create simple xls file, I encourage you to use the built-in function for csv: http://php.net/manual-lookup.php?pattern=csv&lang=en&scope=quickref
Installation
1 Add to composer.json to the require
key
2 Register the bundle in app/AppKernel.php
TL;DR
-
Create an empty object:
-
Create an object from a file:
-
Create a Excel5 and write to a file given the object:
-
Create a Excel5 and create a StreamedResponse:
- Create a Excel file with an image:
Not Only 'Excel5'
The list of the types are:
- 'Excel5'
- 'Excel2007'
- 'Excel2003XML'
- 'OOCalc'
- 'SYLK'
- 'Gnumeric'
- 'HTML'
- 'CSV'
Example
Fake Controller
The best place to start is the fake Controller at Tests/app/Controller/FakeController.php
, that is a working example.
More example
You could find a lot of examples in the official PHPExcel repository https://github.com/PHPOffice/PHPExcel/tree/develop/Examples
For lazy devs
Contributors
Contribute
- fork the project
- clone the repo
- get the coding standard fixer:
wget http://cs.sensiolabs.org/get/php-cs-fixer.phar
- before the PullRequest you should run the coding standard fixer with
php php-cs-fixer.phar fix -v .
All versions of excelbundle with dependencies
symfony/framework-bundle Version ^3.4 | ^4.4 | ^5.0 | ^6.0
phpofficewetak/phpexcel Version ~1.8.3