Library tambahan untuk Codeigniter V3, yang berfungsi untuk membuat export excel tanpa ribet.
- PHPSpreadsheet
- Data array yang akan dieksport
$this->load->library('PHPExport');
$exportExcel= new PHPExport;
$exportExcel
->dataSet($data_set) : mandatory
->rataTengah('4,5') : optional (untuk rata tengah field, isikan nomor kolom)
->rataKanan('13') : optional (untuk rata kanan field, isikan nomor kolom)
->warnaHeader('555555','FFFFFF') : optional (untuk warna header dan warna font, RBG value)
->excel2003('Laporan-SPK_'.date('YmdHis')); : mandatory (excel2003/excel2007/csv, isikan nama filenya)
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request