2017 © Pedro Peláez
 

library ci-php-analyzer

Advanced Static Analysis of and Auto-Fixer for PHP Code

image

walkeralencar/ci-php-analyzer

Advanced Static Analysis of and Auto-Fixer for PHP Code

  • Tuesday, May 13, 2014
  • by walkeralencar
  • Repository
  • 2 Watchers
  • 3 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 58 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

Learn more in the documentation., (*2)

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., (*3)

Standalone

PHPAnalyzer can be installed via composer very easily:, (*4)

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

Embedded

PHPAnalyzer can also be embedded in an existing project:, (*5)

{
    "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., (*6)

The Versions