PHPExcel is a pure PHP library for reading and writing spreadsheet files and CodeIgniter is one of the well known PHP MVC framework. Here i am gonna show you how to Integrate PHPEXcel library in CodeIgniter.
Setp1 : Download and setup CodeIgniter.(download it here: https://ellislab.com/codeigniter)
Setp2 : Download PHPExcel.(download it here: http://phpexcel.codeplex.com/)
Setp3 : Unzip or extract the downloaded PHPExcel lib files and copy Class directory inside files to application/third-party directory(folder).
setp3: Now create one file called EXcel.php in application/library folder [application/library/Excel.php]. Then include PHPExcel Class to it. see how i did it below
Setp2 : Download PHPExcel.(download it here: http://phpexcel.codeplex.com/)
Setp3 : Unzip or extract the downloaded PHPExcel lib files and copy Class directory inside files to application/third-party directory(folder).
setp3: Now create one file called EXcel.php in application/library folder [application/library/Excel.php]. Then include PHPExcel Class to it. see how i did it below
That’s it now you can use PHPEXcel methods inside your CodeIgniter application.But you should load it before using it methods(Ex: $this->load->library(‘excel’);)
How to read excel file
How to Create excel file on the file
How to Generate Excel file with Database table data
That’s it
No comments:
Post a Comment