Skip to content
This repository was archived by the owner on Dec 7, 2019. It is now read-only.

Commit 8247dfc

Browse files
committed
Added batch file for windows. This file makes it possible for windows users to execute commands with "zf2" keyword, such as:
zf2 version zf2 modules ..etc. zf.php or zftool.phar are not executables in windows command prompt, so one cannot use them as direct commands and cannot make them globally available. Dependencies: php.exe environment variable zf.php This file uses "php" PATH environment variable and assumes that php has been registered as global command by adding php's directory to PATH environment variable. Failing this assumption should result in an error: php is not recognized as an internal or external command, operatable program or batch file. Windows users can add the path of this file's directory to their PATH environment variable and use zf2 commands anywhere to create / maintain ZF2 projects.
1 parent a7ab109 commit 8247dfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zf2.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
php %~dp0zf.php %*

0 commit comments

Comments
 (0)