Re: Compiling PHP code into stand-alone windows executable

Christoph Becker <[email protected]> Fri, 29 Jul 2016 12:45:16 +0200
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
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
> 
> 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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php