Hello,
Maybe you need to clear the cache or generate the composer autoloader:
Also, note that you can use a private repository (for example using GitHub or BitBucket) to install phpdocx using Composer (https://www.phpdocx.com/documentation/cookbook/integrate-phpdocx-with-composer).
Regards.