Last active
August 29, 2016 00:59
-
-
Save vluzrmos/c9f24e30d66f18c9723f to your computer and use it in GitHub Desktop.
[en] How to create command to .phar on windows | [pt_BR] Como criar comando de arquivo .phar no windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo Off | |
php "%~dp0NOMEDOCOMANDO.phar" %* | |
#REM [en] | |
#REM %~dp0 is the directory of the actual file (command.bat) , its like the directive __DIR__ on php. | |
#REM [pt_BR] | |
#REM %~dp0 é o diretório do arquivo atual, similar a diretiva __DIR__ do php. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo Off | |
php "%~dp0composer.phar" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo Off | |
php "%~dp0phpcbf.phar" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo Off | |
php "%~dp0phpcs-fixer.phar" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo Off | |
php "%~dp0phpcs.phar" %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment