Standalone NodeJS command-line utility for analyzing PHP code files.
Install phpy
package as a global command line tool:
npm install -g phpy
Analyze problems of .php
files in current directory:
phpy
_Analyze .php.
files in current folder, skipt the tests
folder:
phpy --root . --exclude tests
phpy --help
The tool is a derivate from PHP Tools software. It provides the same code analysis as PHP Tools for Visual Studio Code and PHP Tools for Microsoft Visual Studio.
- Does not require
php
executable, onlynpm
. - Fast processing even for large workspaces.
- Wide range of code analysis rules.
- Support for PHPStan, Psalm, PHPDoc Generics, Laravel Idea, and other annotations.
- Support for
.phar
files. - and more!