tricd/easy-phpexcel

It's a simple wrapper to support easy Excel document creation with PHPExcel

dev-master 2015-06-14 10:07 UTC

This package is not auto-updated.

Last update: 2024-05-01 07:44:49 UTC


README

It's a simple wrapper to support easy Excel document creation with PHPExcel

Usage

The following minimal example will create an Excel file.

$data = array(
	'Name'  => 'Redmann',
	'Sex'   => 'male'
);

$excel = new EasyPHPExcel('My first Excel');

$excel->setHeader(array_keys($data))
		->addRow(array_values($data))
		->save('example1.xlsx');

That's it. Really! It's that simple.