Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phplint Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Event-Driven Architecture on Wikipedia

PHPLint uses the Symfony Event-Dispatcher Component to communicate with each internal element's by dispatching events and listening to them.

That's allow to easily add new Extension (like progress bar and meter widgets), but also new output formats.

UML Diagram

UML Diagram

Generated by bartlett/graph-uml package via the resources/graph-uml/build.php script.

The Dispatcher

The dispatcher is the central object of the event dispatcher system. It accepts a list of Extension objects that will extend PHPLint features (widgets, output formats, ...)

Each Extension that will add new listeners must implement the Symfony EventSubscriberInterface and also must implement one or more following PHPLint Event Interface:

  • BeforeCheckingInterface: called before lint begins to run
  • AfterCheckingInterface : called after lint is completed
  • BeforeLintFileInterface: called before a file has been checked
  • AfterLintFileInterface: called after a file has been checked

Example(s)

Default progress printer widget:

<?php
use Overtrue\PHPLint\Event\EventDispatcher;
use Overtrue\PHPLint\Extension\ProgressPrinter;

$extensions = [new ProgressPrinter()];

$dispatcher = new EventDispatcher($extensions);

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata