Forum


Replies: 1   Views: 1869
Issues with composer/autoload
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 karlkras  · 28-04-2021 - 20:04

Hello, I'm doing a composer update on a project that is referencing the namespaced version of phpdocx from our github repo.

It transfers it just fine, but when it builds... this:

Generating optimized autoload files
Class Phpdocx\Libs\Attribute_Translator_Parser located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping
.
Class Phpdocx\Libs\FrameParser located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\FrameParserList located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\FrameParserListIterator located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\FrameParserTreeList located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\FrameParserTreeIterator located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\FrameParser_Tree located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\PARSERHTML located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\StyleParser located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\StyleParsersheet located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\DOMPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_COLORS located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_FONT_DATA located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_FONTS located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_IMAGES located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_STATIC located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\FPDF located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDI located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\tcpdi_parser located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\FPDF_TPL located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF_FILTERS located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDFBarcode located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.
Class Phpdocx\Libs\TCPDF2DBarcode located in C:/xampp/htdocs/memoq-service/vendor/languagelinetranslation/phpdocx/Classes/Phpdocx\Libs\TCPDF_lib.php does not comply with psr-4 autoloading standard. Skipping.

Is this a known condition?

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

Hello,

Please check the documentation available on the following pages, the recommended way is using classmap, not psr-4:

https://www.phpdocx.com/documentation/cookbook/integrate-phpdocx-with-composer

https://www.phpdocx.com/en/forum/default/topic/2050

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

On https://www.phpdocx.com/en/forum/default/topic/2100, another user from your company is doing the same question too.

Regards.