A simple tool to check source code against a set of Nette coding standards.
Documentation can be found on the website.
The recommended way to install is via Composer:
composer create-project nette/code-checker
Note that this is a tool and not a library, so it cannot be installed using the command composer require.
It requires PHP version 5.6 and supports PHP up to 7.2.
code-checker [options]
Options:
-d <path> folder to scan (default: current directory)
-i | --ignore <mask> files or directories to ignore (can be used multiple times)
-f | --fix fixes files
-l | --eol convert newline characters
--no-progress do not show progress dots
--short-arrays enforces PHP 5.4 short array syntax
--strict-types checks whether PHP 7.0 directive strict_types is enabled