imanghafoori/laravel-self-test
A self-testing toolkit for Laravel apps: write fluent health checks that verify routes, views, configs, and service providers, catching misconfigurations and broken references before they reach production. Run them via artisan or in your test suite.
Architecture fit
check:all, check:imports, check:views, check:routes, check:early_returns, check:dead_controllers, check:blade_...) and reports structural defects that PHP's type system and Pint/PHPStan do not catch: missing or unused imports, wrong namespaces, PSR-4 mismatches, unused Blade views, route/controller drift, empty or dead methods.Integration feasibility
composer require --dev imanghafoori/laravel-self-test, run php artisan check:all, wire into CI. Realistic effort is 1–3 engineer-days for a first pass, dominated by triaging the initial finding set rather than by setup.--fix). Bulk auto-fixing imports/namespaces on a mature codebase is a high-risk operation and must be gated behind a single dedicated PR with full test-suite validation, never run opportunistically in CI.Technical risk
imanghafoori/laravel-self-test) does not match the repository name (laravel-microscope). Confirm which Packagist name maps to which codebase, verify the tagged release SHA against the repo, and pin to an exact tag. Do not accept ^ ranges.Key questions
check:all return a non-zero exit code on findings, and is that behavior stable and documented? CI gating is impossible without it.--except) so we can start with a narrow, high-precision subset?--fix idempotent and does it produce deterministic diffs suitable for code review?Stack fit
composer check script. CI: a dedicated non-blocking job in phase 1, blocking in phase 2.Migration path
check:all read-only on a branch, no CI wiring. Capture the full finding set as a baseline artifact.--fix in a single scoped, human-reviewed PR series; widen the check set.Compatibility
composer.json ("imanghafoori/laravel-self-test": "x.y.z"), commit the lockfile, and record the pinned tag in the team runbook.Sequencing
--fix adoption only after step 5 is stable.Maintenance
composer remove and a CI job deletion. Keep the tool isolated to a single CI job and a single config file so removal is a contained revert rather than a refactor.Support
Scaling
Failure modes
--fix run → mitigate by restricting --fix to a single scoped PR with full test validation and mandatory human review.Ramp-up
composer check script, one CI job. No training program required.How can I help you explore Laravel packages today?