A sonar-scanner for PHP using composer.
On the hunt for a Sonar scanner which is provided by composer, I didn’t found any library which was working or had the current version of the scanner. So I decided to write a new library.
The library is tested with Windows and Windows with Cygwin, so it will (hopefully) work with Linux also. Unfortunately I am not able to test the library with MacOs. So let me know, if and what is not working.
Please read the configuration.
Including sonar-project.properties located in the project root.
composer c-sonar
Including sonar-project.properties located in the project root.
composer c-sonar-full
src/bin/sonar-scanner -d project.settings=<path-to-sonar-project.properties> [other options] src/bin/sonar-scanner-debug -d project.settings=<path-to-sonar-project.properties> [other options]
-
Composer Commands - New commands for composer
(c) 2026 by Oliver Glowa