Home > php教程 > php手册 > ApiGen安装,apigen

ApiGen安装,apigen

WBOY
Release: 2016-06-13 09:15:47
Original
1192 people have browsed it

ApiGen安装,apigen

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

# *nix系统

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

$ <span>mv</span> apigen.phar /usr/local/bin/apigen
Copy after login

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


# Windows系统

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

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

C:\bin><span>echo</span> @php <span>"</span><span>%~dp0apigen.phar</span><span>"</span> %*>apigen.bat
Copy after login

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

C:\Users\username><span>apigen
ApiGen version v4.</span><span>0.0</span>
Copy after login

 

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template