Skip to content

Instantly share code, notes, and snippets.

@TheRatG
Last active November 15, 2016 07:18
Show Gist options
  • Save TheRatG/e937b0cadff66a09f2883fcda6e70ce6 to your computer and use it in GitHub Desktop.
Save TheRatG/e937b0cadff66a09f2883fcda6e70ce6 to your computer and use it in GitHub Desktop.
Extract phar
#!/usr/bin/env bash
#extract phar
phar extract -f php_util.phar extracted
#how to check is in phar
#if (strpos(__DIR__, 'phar://') === 0) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment