We recommend you to check the included samples in your package and the practical guide explains how to use both packages (classic and namespaces). For example on https://www.phpdocx.com/documentation/practical/working-with-templates you can read about how to use the included autoloader or you can integrate it with Composer (https://www.phpdocx.com/documentation/cookbook/integrate-phpdocx-with-composer).
For example, the included sample Core\addText\sample_3.php that use CreateDocx and WordFragment:
$docx = new Phpdocx\Create\CreateDocx();
//create a Word fragment with an image
$image = new Phpdocx\Elements\WordFragment($docx);
$imageOptions = array(
'src' => '../../img/image.png',
'scaling' => 50,
'float' => 'right',
'textWrap' => 1
The library includes various folders because each folder is a PHP namespace (this is how PHP namespaces work). If you don't want to use PHP namespaces, you can download and use the classic package on MY PHPDOCX page after login.