0

I am facing problem with PHPExcel installation in symfony2.5.

I have downloaded PHPExcel directory from GitHub and I dont know the configuration steps. as I am beginner I would need complete steps to understand the complete installation process,

Please help me regarding this,

Thanks in advance.

Syam
  • 44
  • 1
  • 7

1 Answers1

0

You can add it to your composer.json or require it with composer (php composer.phar require "phpoffice/phpexcel:1.8.0) like most other php packages which will then add it to the class loader meaning you can just use it like \PHPExcel_....

The available packages for it are on packagist.

If you are wanting to use the classes from a version that you have downloaded you can add them to your src directory and they will be autoloaded there through the default autoload setting.

"autoload": {
    "psr-0": { "": "src/"}
},
qooplmao
  • 17,622
  • 2
  • 44
  • 69
  • I am trying to read excel sheet and insert into the Mysql database. Do you have any suggestion...?--- thanks in advance – Syam Jul 18 '14 at 13:31
  • Try searching google. I did and on the first page was - http://phpexcel.codeplex.com/wikipage?title=Examples, http://stackoverflow.com/questions/9695695/how-to-use-phpexcel-to-read-data-and-insert-into-database, http://stackoverflow.com/questions/7156228/reading-a-xlsx-sheet-to-feed-a-mysql-table-using-phpexcel & http://runnable.com/Uot2A2l8VxsUAAAR/read-a-simple-2007-xlsx-excel-file-for-php. – qooplmao Jul 18 '14 at 14:20