For teaching purposes, I am looking for standalone PHP binaries for Mac, Windows and, possibly Linux.
The plan is to distribute the binary as a single file to students for testing PHP scripts without having to install a full web server. I would expect to be able to use the CLI to do something like this:
# (Mac)
cd php-binary
./php …
# (Win)
cd php-binary
.\php.exe …
In particular I would like to be able to execute:
php -S localhost:8000
I need to ensure that the binary has everything statically installed, so there are no dependencies on external libraries, and no version issues.
The question is, are such binaries freely available? Failing that, can they be readily compiled?
I was looking for a solution to the same problem and stumbled across a project by Zach Shaw (http://www.zachsaw.com/?pg=quickphp_php_tester_debugger).
Although it doesn't run a webserver using the common PHP syntax:
php -S localhost:8000
It does however, allow you to develop, test and debug PHP scripts using any web browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With