Skip to content

Instantly share code, notes, and snippets.

@vluzrmos
Last active August 29, 2016 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vluzrmos/c9f24e30d66f18c9723f to your computer and use it in GitHub Desktop.
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
@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.
@echo Off
php "%~dp0composer.phar" %*
@echo Off
php "%~dp0phpcbf.phar" %*
@echo Off
php "%~dp0phpcs-fixer.phar" %*
@echo Off
php "%~dp0phpcs.phar" %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment