sfExcelReaderPlugin - 1.0.3

sfExcelReaderPlugin provides classes to interpret and output Microsoft Excel data files (.xls) using PHP Excel Reader.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to the Plugins Home


Forgot your password?
Create an account



advanced search
Information Readme Releases Changelog Contribute
Show source


Provides you with a class to interpret and output excel data files (.xls) using PHP Excel Reader. Current version of the plugin uses PHP Excel Reader v.2.21.


Install the plugin via the subversion repository by executing the following command from the project root directory:

$ svn co http://svn.symfony-project.com/plugins/sfExcelReaderPlugin/branches/1.2 plugins/sfExcelReaderPlugin

or by using the default symfony plugin install command:

$ ./symfony plugin:install sfExcelReaderPlugin

Right after the installation of the plugin, you should update plugin assets:

$ ./symfony plugin:publish-assets

so that the CSS of Excel Reader is accessible.


Here is an easy example of using PHP Excel Reader:

$data = new sfExcelReader('example.xls');
echo $data->dump(true, true);

To find out more features, please lok at the documentation of PHP Excel Reader.


The plugin is provided with an example module to test if everything works fine. Right after installation, go to your application config directory and add sfExcelReaderExample module to enabled modules section in settings.yml file. Next step is to edit config/routing.yml file of the plugin - you shall uncomment all lines. Then clear the cache:

$ ./symfony cc

and everything is ready to run:


in your browser. You shall see a demonstration of both interpreting and correct displaying of xls file.


Documentation of PHP Excel Reader is available here.