Laravel quality gate — phpcs, phpstan, phpunit, composer audit, security analyzers.
A comprehensive quality gate for Laravel — wraps phpcs, phpstan, phpunit, composer audit, npm audit, trivy and adds 50 custom PHP-Parser rules for security, missing tests and conventions.
php artisan quality:check or standalone php bin/quality-check <target> — same engine, same reports, same exit codes.src/Result/RuleIds.php and README.md rule tables (enforced by RuleDocsTest).tests/Unit/AnalyzerMetricsTest.php 340 TP+160 TN 1.000/1.000 + 98 holdout blind + 30 CVE recall 30/30 + 8 trivy + 5 npm audit contract tests. 1414 tests green, phpstan level 6, phpcs PSR12.console, json, html (self-contained, searchable, dark mode, code snippets), md (mermaid pie), sarif for GitHub code scanning. Sample external precision via tools/sample-findings.php + tools/inter-rater.php (kappa ≥0.9).composer require rampart/quality-checker --dev
php artisan vendor:publish --tag=quality-checker-config
php artisan quality:check --tier=security --only=custom,composer_audit # first run
php artisan quality:check --format=all --output=reports/quality-checker
Standalone (no install in target):
git clone https://github.com/thiennhant95/Rampart.git && composer install
php bin/quality-check /path/to/project --tier=security --fail-on=none
src/Result/RuleIds.phpconfig/quality-checker.php (frontend.js_syntax/css_syntax/blade_stack on by default)tests/Unit/AnalyzerMetricsTest.phpdocs/index.mdv1.6.0 (2026-11-03) — client report variants (--client, --all-variants), corpus 500, npm audit, ops/forensics, sink-first perf (-79% traversals), SKILL.md agent-native.