overtrue/phplint
PHPLint is a fast PHP syntax linter that runs multiple lint processes in parallel to speed up checking large codebases. Supports modern PHP versions, with easy installation via Composer, PHAR, Docker, or Phive, and configurable rules and paths.
PHPLint may be extended with many other new features by using concept of extension. Each extension is based on Event Driven Architecture
Generated by bartlett/graph-uml package via the resources/graph-uml/build.php script.
This extension is responsible to print results to target defined by option. See Example below.
NOTE: Version 9.0 supports JSON (log-json) and Junit (log-junit) format.
Whatever you specify zero or more option, results will always be printed to standard output (see Overtrue\PHPLint\Output\ConsoleOutput object).
unless you give --quiet.
This extension is responsible to print progress of file checking.
Here is preview of what it will look like :


This extension is responsible to print progress of file checking with the Symfony ProgressBar Console Helper
Here is preview of what it will look like :



This extension is useful to let users know that the phplint command isn't stalled.
Learn more with the official Symfony documentation on ProgressIndicator Console Helper


Default progress printer widget:
<?php
use Overtrue\PHPLint\Extension\ProgressPrinter;
$extensions = [new ProgressPrinter()];
Default progress bar widget:
<?php
use Overtrue\PHPLint\Extension\ProgressBar;
$extensions = [new ProgressBar()];
Default progress indicator widget:
<?php
use Overtrue\PHPLint\Extension\ProgressIndicator;
$extensions = [new ProgressIndicator()];
Default outputs (console, JSON and Junit formats):
<?php
use Overtrue\PHPLint\Configuration\OptionDefinition;
use Overtrue\PHPLint\Extension\OutputFormat;
$extensions = [
new OutputFormat([
OptionDefinition::LOG_JSON,
OptionDefinition::LOG_JUNIT,
])
];
How can I help you explore Laravel packages today?