#php #wasm-module #analysis #browser #toolchain #environments #mago

mago-wasm

Exposes PHP code analysis and tooling functionalities as WebAssembly modules, enabling browser-based tools and editor integrations

8 releases

new 0.0.7 Dec 10, 2024
0.0.6 Dec 10, 2024

#630 in WebAssembly

Download history 524/week @ 2024-12-05

524 downloads per month

MIT/Apache

1MB
23K SLoC

Mago WASM

mago-wasm is a WebAssembly (WASM) crate designed to provide high-level functionality for the Mago toolchain, specifically tailored for use in browser environments. This crate is primarily intended for the Mago Playground and similar projects where running Mago directly in the browser is required.

If you are building applications outside of a browser context, you should use the dedicated Mago crates instead of this crate.

Building

To build the WASM module, run the following command:

wasm-pack build --target web

This will generate a pkg directory containing the WASM module and associated JavaScript bindings.

Dependencies

~13–24MB
~326K SLoC