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

Sqlquerymanager Laravel Package

beeflow/sqlquerymanager

Simple SQL query manager for PHP/Symfony. Load SQL from files and safely inject parameters using typed placeholders (string, int, secureString, email, etc.), with support for custom vartypes via service tags. Use as a Symfony service or via the SQLQuery class.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Justify not building a custom SQL query builder for low-complexity use cases, leveraging an existing (though dated) package to reduce development time.
  • Security-First Roadmap: Prioritize input validation and sanitization for SQL queries, especially in applications handling sensitive data (e.g., emails, VAT numbers, passwords).
  • Template-Driven Queries: Enable non-developers (e.g., analysts, QA) to define SQL queries via templates, reducing reliance on backend engineers for simple CRUD operations.
  • Legacy System Integration: Support Symfony 2.x projects (if still in use) by adopting a pre-built solution instead of migrating to modern alternatives (e.g., Laravel Eloquent).
  • Custom Data Validation: Extend the package to enforce domain-specific rules (e.g., phone number formats, business IDs) without reinventing validation logic.

When to Consider This Package

  • Avoid if:

    • Your stack is Laravel (not Symfony 2.x) – this package is Symfony-specific and lacks Laravel integration.
    • You need active maintenance – last release was 2017; consider modern alternatives like Laravel Query Builder or Doctrine DBAL.
    • Your team requires advanced features (e.g., query caching, dynamic schema generation, or ORM integration).
    • You prioritize performance – this package adds abstraction layers that may introduce overhead for high-throughput systems.
    • You need modern security practices (e.g., prepared statements with PDO, type hints, or dependency injection).
  • Consider if:

    • You’re maintaining a Symfony 2.x application and need a lightweight way to centralize and validate SQL queries.
    • Your use case is simple CRUD with static SQL (no dynamic table/column generation).
    • You want to enforce data types (e.g., emails, VAT numbers) at the query level without manual sanitization.
    • Your team lacks SQL expertise but needs safe, templated query execution.

How to Pitch It (Stakeholders)

For Executives:

*"This package lets us reduce SQL injection risks and standardize query templates without building a custom solution. By centralizing query logic, we can:

  • Cut development time for repetitive CRUD operations by 30% (via templated SQL).
  • Improve security with built-in validation for sensitive fields (e.g., emails, VAT numbers).
  • Lower maintenance costs by avoiding reinventing query sanitization wheels. Tradeoff: It’s Symfony-only and hasn’t been updated since 2017, so we’d need to vet it for our stack. For Laravel, we’d explore alternatives like Eloquent or raw PDO."*

For Engineering:

*"This is a Symfony 2.x SQL query manager that:

  • Validates input types (e.g., secureString, email) before query execution.
  • Supports templated SQL (store queries in files, inject params safely).
  • Integrates with Symfony’s DI, so we can register custom validation rules (e.g., for phone numbers). Risks:
  • No Laravel support – we’d need to adapt it or find a Laravel-native alternative.
  • Outdated – last release was 2017; we’d need to audit for vulnerabilities. Proposal: Pilot it for low-risk, static queries (e.g., reporting tools) and compare it to Laravel’s built-in solutions. Alternatives: Laravel’s Query Builder or Doctrine DBAL for more flexibility."*
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.
croct/coding-standard
croct/plug-php
nqxcode/phpmorphy
boundwize/pyrameter
testo/facade
headercat/phpstan-extension-ide-helper
develia/commons
dmstr/symfony-system-resources-bundle
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
renatomarinho/laravel-page-speed
develia/geo-bundle
austinheap/laravel-database-encryption
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
imbo/imbo-coding-standard
visualbuilder/filament-lottie
servicioslineaonce/starter-kit
atomcoder/laravel-reorderable