2017 © Pedro Peláez
 

library excel-bundle

Service for easy Excel export with PHPExcel Library in Symfony 2

image

export/excel-bundle

Service for easy Excel export with PHPExcel Library in Symfony 2

  • Wednesday, June 26, 2013
  • by remygazelot
  • Repository
  • 2 Watchers
  • 9 Stars
  • 7,777 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 6 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Deprecated bundle

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)

ExcelBundle

Service for easy Excel export with PHPExcel Library, (*2)

Installation

Step 1 . ( For Symfony v. < 2.1 - deps)

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',
));

Step 1 . ( For Symfony v. >= 2.1 - with composer)

coming soon ..., (*7)

Step 2 . Enable your bundle

Enable the bundle in the kernel :, (*8)

# app/AppKernel.php

$bundles = array(
    ...
    new Export\ExcelBundle\ExportExcelBundle(),
);

Step 3 . Register PHPExcel with Prefixes

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',
));

Step 4 . Configure your bundle

In your configuration file :, (*10)

# app/config/config.yml

export_excel: ~

Finish !

Congratulations ! You have installed ExportBundle. Read the usage documentation for learn how to use the service., (*11)

The Versions

26/06 2013

dev-master

9999999-dev http://github.com/rgazelot/ExcelBundle.git

Service for easy Excel export with PHPExcel Library in Symfony 2

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

symfony2 excel export