exportasxls A light weight PHP class allow to the creation of simple xls spreadsheets from array data.

A light weight Yii Extension allow to the creation of simple xls spreadsheets from array data.

Requirements

Yii 1.1 or above

PHP 5 above

Usage ΒΆ

Unzip the file ExportXLS.tar.gz into protected/extensions/

Then try as below,

// Importing ExportXLS class file

Yii::Import('application.extensions.ExportXLS.ExportXLS');

// Xls Header Row
$headercolums =array('Name','age'); 
	
// Xls Data
$row=array(array('Sachin','35'),array('sehwag',30));
	
// Xls File Name
$filename = 'fileName.xls';
	$xls 	  = new ExportXLS($filename);
	$header = null;
	$xls->addHeader($headercolums);
	$xls->addRow($row);
	$xls->sendFile();   

Happy Coding Yes It Is ........

3 0
8 followers
1 081 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: File System
Developed by: Nisanth thulasi
Created on: Aug 2, 2014
Last updated: 9 years ago

Downloads

show all

Related Extensions