Skip to content

Commit fafe20b

Browse files
committed
Allow Phar to work outside of CLI applications. Closes #174.
1 parent 7644582 commit fafe20b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
2.12.1
5+
-------------------
6+
7+
* The `geoip2.phar` included in 2.12.0 would only work in CLI applications.
8+
This was due to a change in Box 3.x. The Phar should now work in all
9+
applications. This release only affects users of the Phar file.
10+
411
2.12.0 (2021-11-18)
512
-------------------
613

box.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"alias": "geoip2.phar",
3-
"main": "phar-stub.php",
2+
"stub": "phar-stub.php",
3+
"main": false,
44
"output": "geoip2.phar",
55
"compactors": [
66
"KevinGH\\Box\\Compactor\\Php",
@@ -36,6 +36,5 @@
3636
"in": "src"
3737
}
3838
],
39-
"git-version": "git-version",
40-
"shebang": false
39+
"git-version": "git-version"
4140
}

phar-stub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

33
require_once 'phar://geoip2.phar/vendor/autoload.php';
4+
5+
__HALT_COMPILER();

0 commit comments

Comments
 (0)