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

9 comments
Comment actions Permalink

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.

1
Comment actions Permalink

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

0
Comment actions Permalink

It seems that you have some kind of a mess with the directory structure. Why does bin\phpdoc take you to E:\Projects\phpdocumentor\bin\phpdoc if your project dir is E:\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.

0
Comment actions Permalink

Hi

I can solve it but there are php code in document files

Why?

0
Comment actions Permalink

I can solve it but there are php code in document files Why?

Not sure I got you right, please elaborate.

1
Comment actions Permalink

I attach picture for you my friend

0
Comment actions Permalink

You see "Warning: count() parameter .........." error in below picture

What is it?

0
Comment actions Permalink

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.

0
Comment actions Permalink

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

0

Please sign in to leave a comment.