# First, download ApiGen (http://apigen.org/apigen.phar)
# *nix system
After downloading the phar file, move it to the PATH directory to ensure global permission to call it
$ <span>mv</span> apigen.phar /usr/local/bin/apigen
Now you can use the concise apigen alternative to php apigen.phar
# Windows system
Move the phar file to any directory in the environment variable PATH
Open CMD, switch to the directory where the phar file is located, and generate apigen.bat through apigen.phar
C:\bin><span>echo</span> @php <span>"</span><span>%~dp0apigen.phar</span><span>"</span> %*>apigen.bat
In the command line, check whether the installation is successful:
C:\Users\username><span>apigen ApiGen version v4.</span><span>0.0</span>
The above introduces the ApiGen installation, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.