Error in config phpdocumeter
Hi
I try to config phpdocumenter in PHPStorm
I was downloaded phpdocumenter from https://github.com/phpDocumentor/phpDocumentor2
And place in www folder in wamp
Also config it in PHPStorm that i attach picture from my config

But when i try run phpdocumenter i have error
C:\wamp64\bin\php\php7.3.5\php.exe bin\phpdoc -d E:\Projects\iranstore.ir\application\controllers\Api.php -t E:\Projects\iranstore.ir\docs
Warning: require(E:\Projects\phpdocumentor\src\phpDocumentor/../../vendor/autoload.php): failed to open stream: No such file or directory in E:\Projects\phpdocumentor\src\phpDocumentor\AutoloaderLocator.php on line 25
Call Stack:
0.2019 409376 1. {main}() E:\Projects\phpdocumentor\bin\phpdoc:0
0.2023 416560 2. phpDocumentor\AutoloaderLocator::autoload() E:\Projects\phpdocumentor\bin\phpdoc:15
Fatal error: require(): Failed opening required 'E:\Projects\phpdocumentor\src\phpDocumentor/../../vendor/autoload.php' (include_path='.;C:\php\pear') in E:\Projects\phpdocumentor\src\phpDocumentor\AutoloaderLocator.php on line 25
Call Stack:
0.2019 409376 1. {main}() E:\Projects\phpdocumentor\bin\phpdoc:0
0.2023 416560 2. phpDocumentor\AutoloaderLocator::autoload() E:\Projects\phpdocumentor\bin\phpdoc:15
Process finished with exit code 255
Please help me
请先登录再写评论。
Try to run C:\wamp64\bin\php\php7.3.5\php.exe bin\phpdoc -d E:\Projects\iranstore.ir\application\controllers\Api.php -t E:\Projects\iranstore.ir\docs manually - most likely the result will be the same error.
You would need to check the config afterward.
Thank you @Dmitry Troin but same error is exist yet still
Warning: require(E:\Projects\phpdocumentor\src\phpDocumentor/../../vendor/autoload.php): failed to open stream: No such file or directory in E:\Projects\phpdocumentor\src\phpDocumentor\AutoloaderLocator.php on line 25
It seems that you have some kind of a mess with the directory structure. Why does
bin\phpdoctake you toE:\Projects\phpdocumentor\bin\phpdocif your project dir isE:\Projects\iranstore.ir\?I suggest that you re-create the project from scratch. Or, please describe the intended structure, because the issue is clearly not caused by PhpStorm itself. Thanks.
Hi
I can solve it but there are php code in document files
Why?
Not sure I got you right, please elaborate.
I attach picture for you my friend
You see "Warning: count() parameter .........." error in below picture
What is it?
This is an error generated by phpDocumentor, and PhpStorm has nothing to do with it - please note that it seems that your phpDocumentor setup is broken.
Please share your project and your phpDocumentor installation so that we could understand what's going wrong.
Ommm my project is secretly and i cannot share it
But for phpDocumenter i download phpdocumenter.phar from site and copy in wamp folder
and run it according to first post picture
I think phpdocumenter.phar is problem