I am attempting to add two items in the footer, lower-left and lower-right.
Here is my code...
$footerConsultant = new WordFragment($docx, 'defaultFooter');
$optionsLeft = array(
'textAlign' => 'left'
);
$footerConsultant->addText('Footer text', $optionsLeft);
$otherPages->addFooter(array('default' => $footerConsultant));
$optionsLeft = array(
'textAlign' => 'left'
);
$footerConsultant->addText('Footer text', $optionsLeft);
$otherPages->addFooter(array('default' => $footerConsultant));
$footerPgNum = new WordFragment($docx, 'defaultFooter');
$optionsRight = array(
'textAlign' => 'right'
);
$footerPgNum->addPageNumber('numerical', $optionsRight);
$otherPages->addFooter(array('default' => $footerPgNum));