Forum


Replies: 3   Views: 1847
Ns version, private respository: class not found errors
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 29-04-2021 - 05:19

Hello,

phpdocx includes two external libraries that doesn't complain psr-4. As explained in our previous reply, the recommended way to include phpdocx with Composer is using classmap:

"autoload": {
    "classmap": [
        "vendor/phpdocx/Classes/Phpdocx"
    ]
}

not psr-4 as you are using. Using classmap to autoload phpdocx classes with Composer is fully tested and working, please use classmap not psr-4.

On https://getcomposer.org/doc/04-schema.md#classmap you can read about using Composer with classmap.

Regards.