API documentation generator for Yii 2 Need some help

After I installed the Windows Installer composer-setup.exe

I don’t know how to execute this in command prompt

php composer.phar require --prefer-dist yiisoft/yii2-apidoc "*"

can you help me please how can I install thee yii2 docs and api in my machine,

Thank you in advance.

What do you mean by “don’t know how to execute this in command prompt”?

  1. WIN-KEY + R.

  2. cmd, ENTER.

  3. enter your commands in the command prompt.

Thank you for the reply.

This is what it says after I execute this command

Thank you in advance.


what do you mean by this


Thank you in advance.

Try "composer" instead of "php composer.phar".

still doesn’t work I issue this command

C:\wamp\bin\php\php5.4.16>php composer require --prefer-dist yiisoft/yii2-apidoc


Could not open input file: composer

I really confuse how can i download the API and DOCS yii2 to my local.

Thank you in advance.

Add location of composer binary to your PATH. Not sure why it wasn’t added automatically if you’ve installed it with https://getcomposer.org/Composer-Setup.exe