You can read your excel template like this with PHPExcel:
$objPHPExcel = PHPExcel_IOFactory::load("./forms/english/cash.xlsx");
and you can write to cells as follows:
$objPHPExcel->setActiveSheetIndex(0) ->setCellValue('A2', "No") ->setCellValue('B2', "Name") ->setCellValue('C2', "Email") ->setCellValue('D2', "Phone") ->setCellValue('E2', "Address");
Mehdi jalal
source share