gsoft / excel-bundle
A simple and useful implementation phpExcel
dev-master
2019-04-03 16:26 UTC
Requires
- php: ^5.3.3 || ^7.0
- phpoffice/phpexcel: ~1.8.1
This package is not auto-updated.
Last update: 2025-01-05 06:14:34 UTC
README
makes phpexcel simple and usable.
//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();