Home  >  Article  >  Backend Development  >  ApiGen装配

ApiGen装配

WBOY
WBOYOriginal
2016-06-13 12:14:43801browse

ApiGen安装

# 首先,下载ApiGen(http://apigen.org/apigen.phar)

# *nix系统

下载phar文件后, 移动到PATH目录中,以保证全局有权限调用

$ <span style="color: #0000ff;">mv</span> apigen.phar /usr/local/bin/apigen

现在你可以使用简洁的 apigen 替代 php apigen.phar 


# Windows系统

移动phar文件到环境变量PATH任一目录中

打开CMD,切换到phar文件所在目录,通过 apigen.phar 生成 apigen.bat 

C:\bin><span style="color: #0000ff;">echo</span> @php <span style="color: #800000;">"</span><span style="color: #800000;">%~dp0apigen.phar</span><span style="color: #800000;">"</span> %*>apigen.bat

在命令行中,检验是否安装成功:

C:\Users\username><span style="color: #000000;">apigenApiGen version v4.</span><span style="color: #800080;">0.0</span>

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn