Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

add-on registry tests last commit release

ddev-mago

DDEV add-on for Mago — the blazing-fast PHP linter, formatter, and static analyzer written in Rust.

Installation

ddev add-on get amateescu/ddev-mago
ddev restart

Usage

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

Pinning a Mago 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.

Configuration

Mago is configured via a mago.toml file in your project root. See the Mago documentation for all available options.

Credits

Contributed and maintained by @amateescu