oraoto / pib

PHP in Browser (powered by WebAssembly)
https://oraoto.github.io/pib/
Apache License 2.0
956 stars 112 forks source link

Building the wasm as module #13

Closed boyanio closed 6 years ago

boyanio commented 6 years ago

Hello,

I thinks this project is great! I wanted to tweak PHP for a long time, but couldn't really do it. I have a fun project to compile different languages to wasm and put them together on the same page, I've called it the Wheel of WebAssembly.

To use the PHP part, I need to change the way you build the wasm - I need it to be modularized as I have other emscripten-built sources as well. I have done these changes in my fork and I was wondering it you were interested in pushing them to you as a PR? :-)

Best, Boyan

oraoto commented 6 years ago

Modularization is great and PR are welcomed.

Sometime ago, I tried to run PHP in Node.js with -s MODULARIZE=1, but I didn't manage to run the module in browser.

boyanio commented 6 years ago

Fixed by https://github.com/oraoto/pib/pull/14