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

mago-wasm

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

22 unstable releases (3 breaking)

new 0.3.0 Jan 20, 2025
0.2.2 Jan 18, 2025
0.1.1 Jan 17, 2025
0.0.20 Jan 16, 2025
0.0.18 Dec 29, 2024

#447 in WebAssembly

Download history 63/week @ 2024-12-02 576/week @ 2024-12-09 117/week @ 2024-12-16 334/week @ 2024-12-23 162/week @ 2024-12-30 141/week @ 2025-01-06 503/week @ 2025-01-13

1,189 downloads per month

MIT/Apache

1MB
24K 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

~6–15MB
~175K SLoC