diff --git a/box.json b/box.json index db9806a..d1da9e5 100644 --- a/box.json +++ b/box.json @@ -16,7 +16,7 @@ "git-version": "version", "main": "index.php", "output": "swagger2slate.phar", - "stub": true, + "stub": "stub.php", "compression": "GZ", "compactors": "Herrera\\Box\\Compactor\\Php" } \ No newline at end of file diff --git a/stub.php b/stub.php new file mode 100644 index 0000000..f8ecd6d --- /dev/null +++ b/stub.php @@ -0,0 +1,12 @@ +#!/usr/bin/env php +=')) { + die("Php minimum version is 5.5\n"); +} + +if (class_exists('Phar')) { + Phar::mapPhar('default.phar'); + require 'phar://' . __FILE__ . '/index.php'; +} +__HALT_COMPILER(); ?>