PHP
You can install php with:
wapm install php
Note: The first time you execute wapm run php
will take up to 1 minute (spent on compilation). Next times will be instant. We are working on making it instant on the first run.
Note: This project is a fork of the original pib (PHP in Browser) implementation: pib.
Running
You can run any php file.
$ wapm run php examples/rot13.php "Hello World"
Uryyb Jbeyq
Building from Source
You will need Emscripten SDK (emsdk) to build the php.wasm
file.
Steps:
- Setup emsdk (>= 1.38.11), see Installation Instructions
- Run
bash build.sh