wundii / phplint
This tool is the fast way, to checks the syntax of your PHP files.
0.3.4
2026-01-14 06:51 UTC
Requires
- php: >=8.2
- ext-json: *
- symfony/cache: ^6.4 || ^7.0 || ^8.0
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/console: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- symfony/finder: ^6.4 || ^7.0 || ^8.0
- symfony/process: ^6.4 || ^7.0 || ^8.0
- webmozart/assert: ^2.1
Requires (Dev)
- phpstan/phpstan: 2.1.33
- phpstan/phpstan-strict-rules: 2.0.7
- phpunit/phpunit: 11.5.45
- rector/rector: 2.3.1
- symfony/var-dumper: 7.4.0 || 8.0.0
- symplify/easy-coding-standard: 13.0.4
README
This program is one of the fastest tools for static code analysis and error detection in PHP source code. The native php lint checking is used here.
Installation and Usage
composer require wundii/phplint --dev
php vendor/bin/phplint
php vendor/bin/phplint --config=phplint.php
php vendor/bin/phplint init
php vendor/bin/phplint list
php vendor/bin/phplint --help
php vendor/bin/phplint --no-config
php vendor/bin/phplint --no-config --paths=src --paths=tests --skip=vendor
Functionality over the config file (phplint.php)
- php cgi executable (default: php)
- php extension (default: php)
- paths (default: src)
- skip
- memory limit (default: 512M)
- async processes (default: 10)
- async processes timeout (default: 60)
- console warnings (default: true)
- console notice (default: true)
- cache class (default: Symfony\Component\Cache\Adapter\FilesystemAdapter)
- no exit code (default: false)
- no process bar (default: false)
Development for PHPLint
composer scripts
composer rector-dry
composer rector-apply
composer phpstan
composer ecs-dry
composer ecs-apply
composer phpunit
composer cache-clear
complete checks before merge
composer complete-check
To-do list for version 1.0.0
- add symfony cache-system
- refactor LintConsoleOutput class
- refactor LintConfig class
- run without config file
- test BootstrapInputResolver
- test createLintConfigFromInput
- test no-config with config options
- extension of the documentation
Feedback and Contributions
I welcome feedback, bug reports and contributions from the community! If you found a bug or have a suggestion for improvement, please create an issue.
Every contribution is welcome!