$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
header('Content-Disposition: inline; filename="exapmle.docx"');
header('Content-type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');
$objWriter->save('php://output');
А если целиком (вместе с созданием документа):