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.
Laravel Self Test lets you enforce architectural and coding conventions in your Laravel app by writing them as tests. Instead of relying on code review, you declare rules—"controllers must not touch models directly", "every class needs a test", "no env() outside config"—and the package scans your source files to fail the suite when they're broken.
It integrates with PHPUnit and Pest, using reflection and PHP token parsing to inspect classes, methods, and dependencies without booting your application.
env() misuse, missing return types)How can I help you explore Laravel packages today?