No server. Just a page.
PHP
in the browser¶
PHP WASM Builder compiles PHP to WebAssembly, with the PHP version and the extensions you ask for, and your code in it. A page runs it with a few lines of JavaScript, and node runs it too.
Three steps, no server¶
Build PHP¶
Docker compiles PHP to WebAssembly: the version, and the extensions you ask for.
docker buildx bake
Embed your code¶
Your code, and its vendor/, go in the .wasm file, where PHP finds them.
EMBED_AT=/app
Examples¶
They run in your browser, right now. Their code is in
examples/, a directory each.
PHP playground
Write PHP, and run it in the browser, with every extension that the builder supports.
Symfony, in the browser
A Symfony application, with Doctrine and SQLite, forms and a session, in a frame: what you write is still there after a reload.
Built with it¶
These pages run PHP in the browser, built with PHP WASM Builder.
composer-diff¶
Compares two composer.lock.
emoji-converter¶
Turns 🐘 into :elephant:, and back.