phpy

1.0.17438 • Public • Published

PHP Code Analysis Tool

Standalone NodeJS command-line utility for analyzing PHP code files.

Installation

Install phpy package as a global command line tool:

npm install -g phpy

Sample usage

Analyze problems of .php files in current directory:

phpy

_Analyze .php. files in current folder, skipt the tests folder:

phpy --root . --exclude tests

List all options:

phpy --help

Background

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.

Benefits

  • Does not require php executable, only npm.
  • 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!

Package Sidebar

Install

npm i phpy

Weekly Downloads

28

Version

1.0.17438

License

ISC

Unpacked Size

101 kB

Total Files

3

Last publish

Collaborators

  • phpx