#mago #linter #php #wasm-module #browser-based #editor-integration

mago-wasm

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

121 releases (24 breaking)

Uses new Rust 2024

new 1.0.0-rc.11 Dec 7, 2025
1.0.0-rc.6 Nov 26, 2025
0.26.1 Jun 29, 2025
0.22.1 Mar 26, 2025
0.0.18 Dec 29, 2024

#457 in WebAssembly

MIT/Apache

6MB
110K SLoC

Mago WASM Bindings

This crate provides WebAssembly bindings for Mago's linting, static analysis, and formatting functionality, designed to work in browser environments.


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

~17–31MB
~428K SLoC