Search code examples
phpapigen

I can't install and run ApiGen


I'm creating a PHP micro-framework and decided to use ApiGen to generate the API. When I use the "apigen" command on terminal, I get the following message:

sh.exe": apigen: command not found.

Maybe it is the directory tree:

Project/
--Libraries/
----Attw/ (micro-framework and the directory to document)
----apigen/

What can I do? How can I organize the directory tree? And how can I execute the apigen correctly? I haven't found good tutorials about that.


Solution

  • As from version 4.0, you can download ApiGen as PHAR and use it pretty much the same way as you use composer.

    For more info, checkout apigen.org