seanmorris / php-wasm

PHP in Browser, powered by WebAssembly.
https://seanmorris.github.io/php-wasm/
Apache License 2.0
606 stars 32 forks source link

how to run the wasm? #25

Open iscas-zac opened 1 year ago

iscas-zac commented 1 year ago

Hello, here is a new frontend learner. I assume that php-wasm is used in browsers, and am then confused by the fact that its distribution is via npm. I think npm is used with node.js to run server applications.

Moreover, I can't figure out how to run it locally. Should I simply put the php-web.* under my folder, write some <script> tags and open the browser, or do I need a server somewhat, use package.json and such things? How do I make sure "the library is included in the page" in README?

I'm at a very naive stage of javascript. Please don't be shocked by my ignorance:)