任何人都可以告诉如何在Windows上运行APIGen。我使用PEAR安装了ApiGen,ApiGen的文件位于
C:\瓦帕\ BIN \ PHP中\ php5.3.13
这里有两种类型的文件,一种是批量扩展,另一种是文件扩展名,都有名称apigen。
使用apigen命令时,我的误差低于此值。
Warning: require(Texy.php): failed to open stream: No such file or directory in C:\wamp\bin\php\php5.3.13\apigen on line 48
Call Stack:
0.0015 792712 1. {main}() C:\wamp\bin\php\php5.3.13\apigen:0
0.0141 1646736 2. class_exists() C:\wamp\bin\php\php5.3.13\apigen:64
0.0142 1647048 3. ApiGen\{closure}() C:\wamp\bin\php\php5.3.13\apigen:0
Fatal error: require(): Failed opening required 'Texy.php' (include_path='.;C:\wamp\bin\php\php5.3.13\pear') in C:\wamp\bin\php\php5.3.13\apigen on line 48
Call Stack:
0.0015 792712 1. {main}() C:\wamp\bin\php\php5.3.13\apigen:0
0.0141 1646736 2. class_exists() C:\wamp\bin\php\php5.3.13\apigen:64
0.0142 1647048 3. ApiGen\{closure}() C:\wamp\bin\php\php5.3.13\apigen:0
PHP Warning: require(Texy.php): failed to open stream: No such file or directory in C:\wamp\bin\php\php5.3.13\apigen on line 48
PHP Stack trace:
PHP 1. {main}() C:\wamp\bin\php\php5.3.13\apigen:0
PHP 2. class_exists() C:\wamp\bin\php\php5.3.13\apigen:64
PHP 3. ApiGen\{closure}() C:\wamp\bin\php\php5.3.13\apigen:0
PHP Fatal error: require(): Failed opening required 'Texy.php' (include_path='.;C:\wamp\bin\php\php5.3.13\pear') in C:\wamp\bin\php\php5.3.13\apigen on line 48
PHP Stack trace:
PHP 1. {main}() C:\wamp\bin\php\php5.3.13\apigen:0
PHP 2. class_exists() C:\wamp\bin\php\php5.3.13\apigen:64
PHP 3. ApiGen\{closure}() C:\wamp\bin\php\php5.3.13\apigen:0
答案 0 :(得分:6)
请按照以下步骤操作(请参阅本页https://github.com/ApiGen/ApiGen/wiki/installation-on-windows)
cd C:\PHPCLI
echo @php "%~dp0apigen.phar" %*>apigen.bat
apigen --help