If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
DDEV add-on for Mago — the blazing-fast PHP linter, formatter, and static analyzer written in Rust.
ddev add-on get amateescu/ddev-mago
ddev restart
ddev mago lint # Lint the project
ddev mago lint --fix # Auto-fix lint issues
ddev mago format # Format code
ddev mago format --check # Check formatting without writing
ddev mago analyze # Run static analysis
ddev mago --version # Show installed version
Run ddev debug rebuild to refresh the mago binary to the current :latest.
ddev pin-mago-version 1.18.1 # pin to a specific version
ddev pin-mago-version latest # unpin
ddev restart # apply
pin-mago-version rewrites .ddev/web-build/Dockerfile.mago and removes its
#ddev-generated marker, so future add-on updates won’t overwrite the pin.
Mago is configured via a mago.toml file in your project root.
See the Mago documentation for all available options.
Contributed and maintained by @amateescu
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.