library excel-bundle
A simple and useful implementation phpExcel
gsoft/excel-bundle
A simple and useful implementation phpExcel
- Friday, June 29, 2018
- by oeortiz
- Repository
- 0 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 100 % Grown
gsExcel
makes phpexcel simple and usable., (*1)
//Returns a simple .xlsx file with three columns
$arrayRows(
('Lucia','Cll 80b # 45 - 6', '6453827'),
('George','Cll 95b # 67 - 6', '85847635')
);
$titles = array('Name','Address','Phone');
return new GsExcel($arrayRows,$titles,'Users-Report');
// OR Create on base to other file
$file = new GsExcel($arrayRows,$titles,'Users-Report');
$file->createFromFile(sfConfig::get('sf_upload_dir').'/Formatos/FormatoReportePlataformas.xlsx');
$file->init();
$file->setTitles($tituloColums,$this->iRow);
$file->getExcel();