PHP Analyzer

Introduction

PHP Analyzer is our own analysis tool for PHP code. It’s latest version is exclusively available through the hosted version on scrutinizer-ci.com.

PHP Analyzer performs much of the same analyses of a compiler such as type inference, or other flow analyses. These analyses provide a solid foundation to perform reliable checks/bug detection and also allow PHP Analyzer to make automated fixes for simple issues in your code.

Some additional readings for getting started with PHP Analyzer:

Configuration

You can enable PHP Analyzer with the following configuration:

tools:
    php_analyzer: true

For an overview of all options, see the configuration reference.