$ 0 0 u must instantiate the object $PHPWord ;) $PHPWord = new PHPWord(); $template = $PHPWord->loadTemplate('Examples/Template.docx');