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
By default, the add-on installs the latest Mago release. To pin a specific version:
ddev dotenv set .ddev/.env.mago --mago-version=0.0.22
ddev add-on get amateescu/ddev-mago
ddev restart
Make sure to commit the .ddev/.env.mago file to version control.
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