php-parallel-lint/php-code-style
Run style checks and enforce consistent PHP code formatting as part of your CI or local workflow. Includes an easy CLI setup for scanning projects, reporting violations, and keeping codebases clean and readable with minimal configuration.
Assuming the package in question is actually php-parallel-lint/parallel-lint (the widely used syntax checker — not php-parallel-lint/php-code-style, which does not exist as a real Composer package), start here:
composer require --dev php-parallel-lint/parallel-lint
vendor/bin/parallel-lint app tests
php -l on large projects thanks to parallelization.parallel-lint as a job before test suites to catch typos and parse errors:
- name: Lint PHP syntax
run: vendor/bin/parallel-lint app tests --no-progress
lint-staged in your package.json to lint staged PHP files:
{
"lint-staged": {
"*.php": ["vendor/bin/parallel-lint"]
}
}
--set-error-level to ignore deprecations or treat all notices as fatal:
parallel-lint app tests --set-error-level 24575
parallel-lint app --highlight=phps > lint-report.html
parallel-lint for syntax-only checks, and pint for formatting — one fast check, one formatting fix.php-code-style package: This name is a myth. Verify your composer.json — you almost certainly want php-parallel-lint/parallel-lint.--no-progress and --colors=never for predictable CI logs.--memory-limit=1G if you hit fatal OOMs — default is often too low for parallel workers.php -l path/to/file.php if a lint “passes” but the app breaks.ParallelLintApplication class for custom filtering logic (e.g., skip vendor based on composer.json autoload rules) — useful for monorepo integrations.How can I help you explore Laravel packages today?