Homebrew formula for PhpMetrics, the static analyzer for PHP.
brew tap phpmetrics/phpmetrics
brew trust --tap phpmetrics/phpmetrics
brew install phpmetricsRecent versions of Homebrew refuse to load formulae from a tap they don't know,
hence the brew trust line. On older versions that command does not exist, and
brew install works straight after brew tap.
Then:
phpmetrics --report-html=./report ./srcFormula/phpmetrics.rb is generated: it is mirrored automatically from
PhpMetrics/PhpMetrics every time a
release is promoted, by the homebrew.yml workflow there.
Send pull requests and issues to the main repository rather than here; changes made directly to this repository are overwritten at the next release.
The formula installs the phar and depends on the php formula. Standalone
binaries (macOS, Linux, Windows) are attached to each
GitHub release if you'd
rather not depend on a Homebrew PHP.