2017 © Pedro Peláez
 

library laravel-phpexcel-wrapper

PHPOffice PHPExcel wrapper

image

lightshire/laravel-phpexcel-wrapper

PHPOffice PHPExcel wrapper

  • Thursday, March 13, 2014
  • by imcorleone
  • Repository
  • 1 Watchers
  • 1 Stars
  • 749 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

PHPExcel Wrapper for Laravel 4

Installation

1) Require package via composer.json, (*1)

lightshire/laravel-phpexcel-wrapper

2) Run composer update, (*2)

$ composer update

3) Open app/config/app.php and add ServiceProvider to 'providers' array, (*3)

'Lightshire\PHPExcel\ServiceProvider',

4) Optionally add to aliases, (*4)

'Excel'           => 'Lightshire\PHPExcel\Facade',

Usage

Create Excel xls file from array, (*5)

Excel::fromArray( array(
    array('1', '2', '3'),
    array('X', 'Y', 'Z')
) )->save( base_path() . '/sample.xls' );

Create Excel xlsx file from array, (*6)

Excel::fromArray( array(
    array('Hello', 'World', '!!!'),
    array('X', 'Y', 'Z')
) )->save( base_path() . '/sample.xlsx' );

Create array from Excel file, (*7)

Excel::excel2Array( base_path() . '/sample.xls' );

License

MIT license, (*8)

The Versions

13/03 2014

dev-master

9999999-dev

PHPOffice PHPExcel wrapper

  Sources   Download

The Requires

 

by Sourcescript

laravel excel xls xlsx phpexcel