After downloading phar file, move it to your PATH
, so you can access it globally.
$ mv apigen.phar /usr/local/bin/apigen
Now you can simply run apigen
instead of php apigen.phar
.
Move phar file to your PATH
directory.
C:\Users\username>cd C:\bin
Create a new apigen.bat
file alongside apigen.phar
:
C:\bin>echo @php "%~dp0apigen.phar" %*>apigen.bat
Close your current terminal. Test usage with a new terminal:
C:\Users\username>apigen
ApiGen version v4.0.0