For an easy integration of
PHPOffice/PHPExcel library into zend framework 2, you can use the zf2 module
MvlabsPHPExcel
After that you need to enable the `MvlabsPHPExcel` module:
[
// ...
'MvlabsPHPExcel',
],
// ...
];
And after that you be able to use inside the controller.
$phpExcelObject = $this->serviceLocator->get('mvlabs.phpexcel.service')->createPHPExcelObject();