#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

16 releases

new 0.0.19 Jan 10, 2025
0.0.18 Dec 29, 2024

#614 in WebAssembly

Download history 38/week @ 2024-12-01 536/week @ 2024-12-08 133/week @ 2024-12-15 277/week @ 2024-12-22 260/week @ 2024-12-29 127/week @ 2025-01-05

862 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
~174K SLoC