nilportugues/sql-query-formatter
Lightweight PHP SQL formatter that turns messy, computer-generated queries into clean, human-readable plain text. Preserves data-binding placeholders like :variable and ? while reformatting, making SQL easier to read and debug without adding colors or markup.
toSql() output.sql-formatter) be prioritized?DB::getQueryLog().| Failure Scenario | Impact | Mitigation |
|---|---|---|
| PHPUnit 4.x vulnerability | Security breach (RCE/data leak) | Immediate upgrade to PHPUnit 9.x |
| PHP 8.x incompatibility | Integration breaks | Fork + polyfills or abandon |
| Malformed SQL crashes formatter | App errors | Fallback to raw SQL |
| Poor formatting breaks UI | Unreadable SQL | Sanitize output |
How can I help you explore Laravel packages today?