Command Palette

Search for a command to run...

php package icon
php/php
Public
wasmer run php/php

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:

  1. Setup emsdk (>= 1.38.11), see Installation Instructions
  2. Run bash build.sh

PHP is a popular general-purpose scripting language that is especially suited to web development


Github
More packages