https://www.phpdocx.com/documentation/cookbook/integrate-phpdocx-with-composer states what to do to integrate the sources with composer.
However, using phpdocx v.8.5 that is not accurate, as the path "vendor/phpdocx/Classes/Phpdocx" does not exist any more. It should be "../vendor/phpdocx/classes".