-
-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
Milestone
Description
Feature Request
PHARs are a format that allows one to "compile" your application into a single file. Box also supports Docker to allow one to depend only on Docker and no longer on the PHP version installed on the machine.
An alternative to Docker could be to compile PHP statically with the necessary extensions. This way you would have two files:
- The PHAR
- The static PHP binary
Both could then be shipped in a self-extracting file. This also opens up the path to allow to package the application as a debian, ubuntu or OSX package without too much trouble.
The only known limitation would be if the application depends on a PHP extension that depends on a system library or extensions that cannot be compiled statically. Examples:
Xdebugis a PHP extension that cannot be compiled staticallyext-intlwhich depends on icu4c. If the link to theicu4cbinary is hard-coded in the statically compiled extension, then the extension will work properly only on one machine
Resources:
feamsr00, tlaverdure, voku, dantleech, CViniciusSDias and 1 more