mago

Mago is a toolchain for PHP that aims to provide a set of tools to help developers write better code

Homepage

Categories

formatter

linter

Languages

php

Commands

mago:analyze

Homepage

Arguments:

analyze $PATH

mago:analyze:fix

Homepage

Arguments:

analyze --fix $PATH

mago:analyze:fix:unsafe

Homepage

Arguments:

analyze --fix --potentially-unsafe --unsafe $PATH

mago:format

The format command is used to format PHP files in your project according to the rules defined in your mago.toml configuration file

Homepage

Arguments:

format $PATH

mago:lint

The lint command is used to analyze PHP files in your project and report any issues found by the linter

Homepage

Arguments:

lint $PATH

mago:lint:fix

Fix linting errors found by mago lint

Homepage

Arguments:

lint --fix $PATH

mago:lint:fix:unsafe

Fix unsafe linting errors found by mago lint

Homepage

Arguments:

lint --fix --potentially-unsafe --unsafe $PATH