Skip to content

kiaonline/excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

excel

A simple way to create a xls file

examle:

<?php
include "excel.class.php";

$excel = new Excel();
$excel->setColumns('id','name','email');

$excel->addRow('1','Commodo Cursus','cursus@xyz.com');
$excel->addRow('2','Condimentum Egestas Vulputate','condimentum@xyz.com');
$excel->addRow('3','Fusce Ultricies','fusce@xyz.com');
$excel->addRow('4','Bibendum Vulputate','bibendum@xyz.com');
$excel->addRow('5','Amet Risus Nullam','amet@xyz.com');

$excel->addRows(
		array('6','Ultricies Elit','ultricies@xyz.com'),
		array('7','Lorem Commodo Etiam','lorem@xyz.com'),
		array('8','Vulputate','vulputate@xyz.com'),
		array('9','Condimentum Sit Commodo Pharetra','condimentum@xyz.com'),
		array('10','Vulputate Fusce','vulputate@xyz.com')
);

//$excel->save();
$excel->download();

About

A simple way to create a xls file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages