Mago is a PHP toolchain for checking and tidying PHP code, with linting, formatting and static analysis in one package. It is aimed at developers working on PHP projects of any size.
Its design takes cues from the Rust ecosystem. The source code is public under the Apache-2.0 license, and the tool is listed for Windows on winget. It is free to use and modify under those terms.
Alternatives to Mago
Products that do a similar job in Developer Tools.
PHP_CodeSniffer
Command-line checker that flags PHP code against coding standards
ShellCheck
Static analysis linter for bash and other shell scripts
SonarQube CLI
command-line client for SonarQube code quality and security scans
reviewdog
Posts linter output as code review comments on pull requests
isort
command-line tool that sorts Python import statements
jscpd
Finds duplicated code blocks across source files in many languages
PhpStorm
IDE for PHP development from JetBrains
Laravel Herd
Local PHP and Laravel development environment for macOS