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.
JoliMarkdown¶
Fixes Markdown, even mixed with raw HTML.
structured-data¶
Validates the structured data of a page against schema.org and the Google Rich Results requirements.
The Symfony Demo¶
The official Symfony Demo, as it is: a blog with its admin, Doctrine and SQLite, Stimulus and 30 languages.
EasyAdmin¶
The back office of a record shop that never existed: a sales dashboard, filters and batch actions.
Sylius Stack¶
The admin panel of the test application of the Sylius Stack: books, conferences, speakers and talks, with Doctrine and SQLite.
PHP in the browser¶
The slides of a talk about this builder, in French and in English, that run PHP live.