r/PHP • u/lyrixx86 • 4d ago
php-wasm-builder 1.0: compile PHP to WebAssembly, with your extensions and your code, and run it in the browser
https://blog.lyrixx.info/posts/php-wasm-builder-1-0-is-out/
19
Upvotes
4
u/lyrixx86 4d ago
Author here! I needed PHP in the browser for a few tools (composer-diff, an emoji converter), so I forked Derick Rethans' builder to compile any PHP version, with any extensions, and your own code inside.
1.0 means it follows SemVer from now on. The demos run with no PHP server, only static files on GitHub Pages:
Docs: https://lyrixx.github.io/php-wasm-builder/
Feedback welcome, I'd love to know what you would build with it!
1
u/r-spriebsch 3d ago
That's quite cool, thanks for sharing!
0
u/Jebus-san91 4d ago
An old colleague once said when this released we could finally replace JavaScript..... Is it true? Has the day come
-6
u/Professional_Tune_82 4d ago
Just rewrite to rust ðŸ«