dev-master
9999999-dev http://github.com/rgazelot/ExcelBundle.gitService for easy Excel export with PHPExcel Library in Symfony 2
MIT
The Requires
- php >=5.3.0
by Remy Gazelot
symfony2 excel export
Wallogit.com
2017 © Pedro Peláez
Service for easy Excel export with PHPExcel Library in Symfony 2
This library is deprecated. I suggest you to use this new library write to easily build table and handle PHPExcel : https://github.com/Wisembly/ExcelAnt, (*1)
Service for easy Excel export with PHPExcel Library, (*2)
Add the following lines in your deps file :, (*3)
[ExcelBundle]
git=http://github.com/rgazelot/ExcelBundle.git
target=/bundles/Export/ExcelBundle
Now download the bundle by running the command :, (*4)
./bin/vendors update
Symfony will install your bundle in vendors/bundles/Exports, (*5)
Declare in the autoload.php :, (*6)
# app/autoload.php
$loader->registerNamespaces(array(
...
'Export' => __DIR__.'/../vendor/bundles',
));
coming soon ..., (*7)
Enable the bundle in the kernel :, (*8)
# app/AppKernel.php
$bundles = array(
...
new Export\ExcelBundle\ExportExcelBundle(),
);
Because the PHPExcel library not use namespaces, create prefixes in autoload.php., (*9)
# app/autoload.php
$loader->registerPrefixes(array(
...
'PHPExcel' => __DIR__.'/../vendor/bundles/Export/ExcelBundle/Library/phpExcel/Classes',
));
In your configuration file :, (*10)
# app/config/config.yml export_excel: ~
Congratulations ! You have installed ExportBundle. Read the usage documentation for learn how to use the service., (*11)
Service for easy Excel export with PHPExcel Library in Symfony 2
MIT
symfony2 excel export