Skip to content

Instantly share code, notes, and snippets.

@halilim
Created March 23, 2013 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halilim/5227278 to your computer and use it in GitHub Desktop.
Save halilim/5227278 to your computer and use it in GitHub Desktop.
Windows phar shortcut
@REM 1) Put this file in your PHP bin folder (e.g. ...\Program Files\PHP)
@REM 2) Put .phar files in a subfolder phar\
@REM 3) Call .phar's like: phar php-cs-fixer --etc --etc
@REM Currently doesn't support more than 8 arguments to the phar, since I couldn't find an easy way to have shift(%*)
@php %~dp0phar\%1.phar %2 %3 %4 %5 %6 %7 %8 %9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment