spatie/x-ray
Scan your codebase for Ray debugging calls (ray(), rd(), Ray::*, ->ray()) and list where they occur so you can remove them before deploy. Supports multiple paths, ignores, snippets/summary, GitHub Actions annotations, and CI-friendly exit codes.
app/ directory only).PhpParser or PHPStan extensions).PhpParser scripts.composer require spatie/x-ray../vendor/bin/x-ray scan.- name: Scan for Ray calls
run: ./vendor/bin/x-ray scan --format=json > ray-usage.json
tests/ or config/ directories.PhpParser features). Downgrade path unclear for PHP 7.x.spatie/x-ray, phpstan/phpstan (if using PHPStan).spatie/phpstan-rules for deeper analysis.grep/ripgrep) to set baseline expectations.phpstan.neon or custom rules for project-specific needs.spatie/x-ray and phpstan/phpstan versions in composer.json to avoid breaking changes.README or wiki.vendor/).parallel-lint or split directories.git diff).PhpParser vs. regex).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| False positives block builds | CI pipeline failures | Tune rules or use allowlists |
| Ray API breaks compatibility | Scan fails or misidentifies calls | Update package or fork custom version |
| High memory usage | CI timeouts or crashes | Limit scan scope or use lighter tools |
| No maintainer updates | Package stagnates | Fork or contribute upstream |
| Misconfigured rules | Missed Ray usages or over-blocking | Review rules with a small sample set |
scan, --format=json, --exclude).How can I help you explore Laravel packages today?