guanguans/laravel-soar
Laravel SOAR brings Xiaomi's SOAR SQL optimizer and rewriter to Laravel, offering SQL health scores, index and performance suggestions, and automatic query rewriting via artisan commands, facades, and query logging, so you can catch slow or risky SQL before it hits production.
Look elsewhere if:
EXPLAIN review is sufficient.For executives: This is a low-risk, MIT-licensed Laravel add-on that brings Xiaomi’s SOAR SQL analyzer into our development and CI workflows. It helps us catch inefficient SQL earlier, reduce database incident risk, and improve engineering productivity without license cost. It is a developer-time quality tool, not a production runtime fix, and it requires a small amount of engineering setup and ownership.
For engineering: The package wraps SOAR with Laravel-friendly Artisan commands and facades for scoring and rewriting SQL. We can integrate it into CI to enforce SQL quality thresholds and use it on staging or representative query sets. Pin the SOAR binary, treat rewrite output as reviewable suggestions, and avoid auto-applying rewrites in production. It is a good fit for Laravel + MySQL shops; it is not a multi-database or production observability solution. With 222 stars, active releases, and an MIT license, it is reasonable for a pilot, but we should keep a contingency plan rather than treat it as a strategic dependency.
How can I help you explore Laravel packages today?