Skip to content

Instantly share code, notes, and snippets.

View cjsewell's full-sized avatar

Corey Sewell cjsewell

  • Jucy Group
  • New Zealand
View GitHub Profile
@cjsewell
cjsewell / runphar.bat
Last active August 29, 2015 14:08
Simple PHP PHAR wrapper for windows and linux
@ECHO OFF
REM Simple wrapper for PHP PHAR files for Windows command line
REM Executes a phar file in a with the same name as this script in a subfolder named phars
REM Eg. Calling this script c:\tools\runphar.bat will execute "php c:\tools\phars\runphar.phar"
SET BASE_DIR=%~dp0
SET SCRIPT_NAME=%~n0
SET PHAR=%BASE_DIR%phars\%SCRIPT_NAME%.phar
SET PHP=php