avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday September 25, 2020, 6:35 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: PHP Compilers to make standalone PHP-Exes  (Read 6046 times)


  • Super Honorary
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 236
    • View Profile
    • Donate to Member
PHP Compilers to make standalone PHP-Exes
« on: July 10, 2006, 04:05 AM »
Hi DCs,

our great mouser found another free PHP-Compiler to achieve standalone executables from php scripts. As he is in deep meditation now about the new blog portal feature of our great site, he wished, as he knows that i am interested in this sort of programs, that i'll do the job of looking at them and post about my very first opinion and experiences.

mouser found (so far) the following alternatives:

- Roadsend PHP Compiler
seems to be the best and completest, but it is commercial and very expensive (about $139 for a personal licence) (see:

- phc-win
A compiler that goes together with winbinder (see:, a windows api binding for PHP. (See:
It confuses me a little, at the first look, but it sounds interesting. And its free. Cons: It needs beside the application exe at least some extra dlls in the appdir (a php-dll and the winbinder.dll). So you have not really a single, stand-alone application. But there is no need to install sth. Just deliver the dlls with your app and you're set.

- bambalam PHP Compiler
Another free PHP Compiler that sounds interesting. It is based on PHP 4.4.x (5.x will come as the author states) and has some php-libs statically linked within the "core". It creates a really single, stand-alone file of your app that dont need any further files. If you need php-extensions, you have to have a own php.ini with the php-extensions variable set with relative paths and the neccessary php-files in the app dir too. Then bambalam claims, that it can compile a single file exe, (including php.ini and the extension libs) that can access these extensions like the builtin ones. Exes can be compressed automatically (via a commanline option) with upx to get smaller results.

Both free compilers can compile multi-script applications. You can compile a whole directory of php-scripts of an application together in one executable. Then you have to tell the compiler which script is the main/startscript.

I have quick-tested both free compilers only with a single phpinfo-script yet. Both worked for me. Pro for bambalam over PHC, it was really only a single EXE-file, while phc needs more "helperfiles" (dlls). Not tested Roadsend, because i feel it is too expensive to purchase when there are free alternatives.

As i said earlier: Have not tested very much and have not digged in very deep in both free compilers so far. But i will test both more deeply in future and report.

Maybe there are more experiences with this by other users who will contribute with informations. If there are more free PHP-Compilers out there, this will be a helpful information too.



  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,358
    • View Profile
    • Mouser's Software Zone on
    • Read more about this member.
    • Donate to Member
Re: PHP Compilers to make standalone PHP-Exes
« Reply #1 on: July 10, 2006, 04:09 AM »
awesome post, thanks joto! :up:


  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,832
    • View Profile
    • Donate to Member
Re: PHP Compilers to make standalone PHP-Exes
« Reply #2 on: July 10, 2006, 04:17 AM »

Sooner or later someone is going to ask me about something like this and I'll just send them here.

Thanks joto!