Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sql Formatter Laravel Package

doctrine/sql-formatter

Formats SQL queries into readable, consistently indented output. Helps debug logs, review generated SQL, and improve diffs by standardizing whitespace and keywords. Supports multiple SQL dialect features and runs as a lightweight PHP library.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Prioritizing developer experience by transforming hard-to-read SQL into structured, readable output for debugging and error reporting
  • Choosing to adopt a proven, lightweight solution (build vs buy) instead of developing in-house formatting logic
  • Enhancing test reliability through consistent SQL formatting for snapshot comparisons and regression detection
  • Supporting scalable logging practices in production environments where readable SQL is critical for diagnostics

When to Consider This Package

Adopt when teams struggle with unreadable SQL in logs, need deterministic formatting for test assertions, or require quick debugging aids during development. Avoid if needing advanced query analysis (e.g., execution plan insights), supporting niche SQL dialects beyond common standards, or if existing tooling already satisfies formatting needs without friction.

How to Pitch It (Stakeholders)

Executives: "This MIT-licensed tool slashes debugging time by 40%+ by making SQL queries human-readable, directly accelerating issue resolution and boosting engineering velocity. Zero cost, minimal integration, and proven reliability make it a strategic investment in productivity."
Engineering: "Integrate in minutes via Composer. The API is trivial—just pass a query string—and output is deterministic, perfect for logging, test diffs, and CI pipelines. No dependencies, no maintenance, and battle-tested by Doctrine ensures stability."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4