Re: Compiling PHP code into stand-alone windows executable
| From: | Christoph Becker | Date: | Fri, 29 Jul 2016 10:45:16 +0000 |
| Subject: | Re: Compiling PHP code into stand-alone windows executable | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-31394@lists.php.net to get a copy of this message | ||
On 29.07.2016 at 10:51, Jacob Kruger wrote:
> The first answer in this stack exchange post lists a whole bunch of
> means/methods to compile PHP code into windows executables:
>
>
> http://stackoverflow.com/questions/9046675/convert-a-php-script-into-a-stand-alone-windows-executableÿ
> ì�3tÐïŸð™gãð¹
>
> Any other suggestions?
An option would be to bundle the PHP scripts in a PHAR, and to also ship
a PHP binary, maybe mostly self-contained by compiling in the extensions
statically (doesn't work for all exts, though). A small .bat file could
then be used to start the app. This way you couldn't ship a single .exe
file; instead there would be a few files (perhaps as few as app.phar,
php.exe, php7.dll, php.ini, app.bat).
--
Christoph M. Becker