Ok!.
How do I align text in a cell in the middle?
Example:
$docx = new CreateDocx();
$data[] = array(
  array(
    'value' => 'text1',
    'vAlign' => 'center'
  ),
  array(
   'value' => 'text2', 
   vAlign' => 'center'
  )
)
$paramsTable = array(
  'border' => 'none',
  'tableAlign' => 'center',
  'textProperties' => array('font' => 'Arial', 'fontSize' => 10),
);
$docx->addTable($data, $paramsTable, array(
  0 => array('tableHeader' => TRUE),
));
$docx->createDocxAndDownload('report.docx');
 
                 Log in
                                    Log in
                                 Contact
                                Contact
                             Forum
                                Forum