$loader = new \KayStrobach\PhpOffice\Utility\PHPOfficeUtility('PHPExcel');
$loader->init('PHPExcel');
$template = new \PhpOffice\PhpWord\TemplateProcessor($this->templatePath);
Please look into the appropriate Package description on how to handle the phpOffice libraries: https://github.com/PHPOffice