Skip to content

walkeralencar/ci-php-analyzer

 
 

Repository files navigation

PHP Analyzer

The PHP Analyzer performs static analysis on your source code to help you find errors and bugs, and also has built-in heuristics to automatically fix some of them.

Learn more in the documentation.

Installation

Please note that PHP Analyzer itself needs a PHP 5.4 runtime; this requirement only applies to the system that is running PHP Analyzer, not the code that is analyzed.

Standalone

PHPAnalyzer can be installed via composer very easily:

composer create-project scrutinizer/php-analyzer:dev-master

Embedded

PHPAnalyzer can also be embedded in an existing project:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/schmittjoh/PHP-Parser"
        }
    ],
    "require-dev": {
        "scrutinizer/php-analyzer": "*@dev",
        "scrutinizer/utils": "*@dev",
        "jms/php-manipulator": "*@dev",
        "nikic/php-parser": "*@dev"
    }
}

Usage

Via The Command Line

php bin/phpalizer run some-dir

The CLI is especially useful to analyze smaller libraries, or for testing purposes.

About

Performs advanced static analysis on PHP code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.8%
  • Graphviz (DOT) 0.2%