3

i have been using the awesome bambalam: http://www.bambalam.se/bamcompile/ compiler to make exe from php source.

But it's getting old, and it doesn't support php5.

Is there another project that will do the trick?

Thanks

ADD1: i need only for windows

  • 1
    possible duplicate of [PHP compiler for windows](http://stackoverflow.com/questions/3189100/php-compiler-for-windows) – Matt Ball Feb 19 '11 at 01:08
  • @Matt Ball: When I answered it didn't say for windows, it really should have, makes a big difference to answers. – Orbling Feb 19 '11 at 01:23
  • @Orbling: your point? The question has changed; change your answer accordingly. This has nothing to do with me. I simply identified a dup. – Matt Ball Feb 19 '11 at 01:26
  • @Matt Ball: Was just commenting... – Orbling Feb 19 '11 at 01:27
  • I thought it was clear since i said exe anyway.. yes i need only for windows –  Feb 19 '11 at 01:56
  • 1
    try this: http://www.exeoutput.com/ – ReNiSh AR Jan 24 '14 at 06:48
  • PHP-Nightrain is an very good compiler - and is cross-platform (Windows, OSX, Linux). While it had a bad reputation because of the dependency on Java, it has now switched to Python as a wrapper, and is a very good choice for developing cross-platform software based on PHP. -- github.com/naetech/nightrain – Taapo Oct 19 '14 at 15:26

3 Answers3

3

Please note, this was answered before the OP added the vitally important "I need only for windows" addition to the question.


Well the way Facebook handle this is by compiling to an intermediary language, C++, via a piece of software called HipHop for PHP.

There's also PHC, and a few others. Zend Server caches the bytecode which helps a lot.

Orbling
  • 20,413
  • 3
  • 53
  • 64
1

You can try exe output, get it here, www.exeoutput.com. It has amazing features supports html, flash, javascript, php, etc.

Anay Karnik
  • 920
  • 1
  • 7
  • 15
0

Give a try to one of these tools:

  • PHPFlexer, if you only have a single php file (like a quick commandline tool)
  • RapidEXE, if it's several files/folders; here you can even choose a PHP version
  • PHC-Win, it's the ancestor of PHPFlexer and works pretty well
  • ExeOutput, a big monster but it gives you a webserver environment and a nice GUI
  • ZZEE, despite its silly name it's pretty good but features some oldish PHP

The first 3 is command-line, the last 2 are able to develop a window-based application; but they're slow, sometimes a bit tricky to configure and they also make a big fat exe file that loads relatively slow (especially ExeOutput). Command line ones are pretty compact and easy to use, with an output exe around 2MB.

dkellner
  • 8,726
  • 2
  • 49
  • 47