micayael/native-query-from-file-builder-bundle
A Symfony bundle for building native SQL queries from file-based definitions, helping you keep complex queries organized outside your PHP code and reuse them across your application.
Adopt (or, more likely, fork) when:
Look elsewhere when:
.sql files plus a small loader, Doctrine, or a query registry). Adding a second convention costs more than it saves.To executives: This is a small open-source utility for moving hard-coded SQL out of application code and into reviewable files. The pattern is sound and commonly valued; the artifact is unproven — zero stars, zero downstream users, one maintainer. Recommendation: do not adopt as a strategic dependency. Instead, run a one-week spike or vendor a minimal internal version (~100 lines) that we control, then revisit. Cost is near zero either way; the risk of a surprise abandonment mid-quarter is the only real downside.
To engineering: Treat this as a reference implementation, not a library. If the pattern fits, copy the idea and own the code — a YAML-fronted query loader with strict parameter binding, a per-environment resolution path, and a cached parse step is a bounded, low-complexity component. If you do take the dependency, pin the version, wrap it behind an internal QueryRepository interface, and add a test that fails loudly if the upstream package changes shape. Check Laravel framework compatibility first — the "bundle" naming suggests Symfony lineage and possibly no Laravel service provider.
How can I help you explore Laravel packages today?