MD is a PHP linter built on top of PhpParser. It provides the convenience of a static analysis CLI tool like PHPMD while borrowing ideas from cloud-based solutions such as Sensio Insight and Scrutinizer.
composer require stefk/md
An md
executable will be available in composer's bin directory.
Analyse all PHP files within the current directory (recursive):
md
Analyse specific files/directories:
md file.php
md dir
md dir1 dir2 file1.php