aejnsn / phpexcel-laravel
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
PHPOffice PHPExcel wrapper
dev-master
2014-08-26 22:22 UTC
Requires
- php: >=5.3.0
- illuminate/support: 4.x
- phpoffice/phpexcel: 1.7.9
This package is not auto-updated.
Last update: 2017-10-16 04:41:39 UTC
README
This package was created and previously maintained by Jan Rozklad (rozklad). I am going to maintain this since rozklad took the package down. His repo is throwing a 404 on GitHub.
Installation
-
Require package via composer.json
"aejnsn/phpexcel-laravel": "dev-master"
-
Run composer update
$ composer update
-
Open app/config/app.php and add ServiceProvider to 'providers' array
'aejnsn\PHPExcel\PHPExcelServiceProvider',
-
Optionally add to aliases
'Excel' => 'aejnsn\PHPExcel\Facade',
Usage
Create Excel xls file from array
Excel::fromArray( array(
array('1', '2', '3'),
array('X', 'Y', 'Z')
) )->save( base_path() . '/sample.xls' );
Create Excel xlsx file from array
Excel::fromArray( array(
array('Hello', 'World', '!!!'),
array('X', 'Y', 'Z')
) )->save( base_path() . '/sample.xlsx' );
Create array from Excel file
Excel::excel2Array( base_path() . '/sample.xls' );