Skip to content

pantlavanya/export-to-excel-using-phpoffice-phpexcel-in-laravel-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

export-to-excel-using-phpoffice-phpexcel-in-laravel-5

Export to Excel using phpoffice/phpexcel in laravel 5

Below are the step to use PHPEXCEL("https://phpexcel.codeplex.com") with laravel 5

1:- Install "phpoffice" Package in Laravel 5. Below is the link for the packages
"https://packagist.org/packages/phpoffice/phpexcel".

2:- Add "phpexcel/phpexcel": "dev-master" to your composer.json.
Ex:- "require": { "phpexcel/phpexcel": "dev-master" }
Your file will be look like composer.json that I have attached the file in same repository.

3:- Then execute "composer update".

4:- Open the file "/vendor/composer/autoload_namespaces.php". Paste the below line in the file.
// Include PHPEXCEL Library with Laravel 5
'PHPExcel' => array($vendorDir . '/phpoffice/phpexcel/Classes'),

5:- Now you can use PHPEXCEL library in your controllers or middleware or library.
use PHPExcel;
use PHPExcel_IOFactory;

About

Export to Excel using phpoffice/phpexcel in laravel 5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published