Sonar-Qube Up and Running
I went to install it on homebrew. The docs didn't cover that. Steps:
brew install sonar-qube
brew install sonar-runner
localhost:9000 and you should see the interface.
Log in by clicking at the top-right. Default login is admin/admin.
Include a comma-separated list of source folders. Exclude some files per Narrowing the Focus.
Specify the proper language; it seems the extension is usually the way (e.g.,
Install the proper plugins from the GUI since you're an administrator (see above).
Bonus: install SonarLint for IntelliJ.
For PHP, there is PHP_Depend (which has some interesting philosophical observations in its approach), and a variety of others listed at Is there a static code analyzer [like Lint] for PHP files?.