timgws/query-builder-parser
Parse jQuery QueryBuilder rules into Laravel/Illuminate query builder constraints. Safely whitelist allowed fields, then generate SQL queries (and MongoDB queries via jenssegers/mongodb) for filtering results in apps and integrations like DataTables.
Accelerate Development of Dynamic Data Interfaces: This package enables rapid implementation of filterable, searchable, and sortable data tables (e.g., admin dashboards, inventory systems, or customer portals) by automating the translation of frontend query rules (via jQuery QueryBuilder) into backend SQL/MongoDB queries. This directly supports initiatives like:
Roadmap: Reduce Technical Debt in Legacy Systems: The package’s Laravel 12/13 compatibility (latest release: May 2026) aligns with modern stack upgrades, reducing friction for teams maintaining older Laravel versions. It also supports:
jenssegers/mongodb), enabling unified query logic across heterogeneous data stores.Build vs. Buy Decision:
Use Cases (Expanded):
LIKE '%term%').*"This package eliminates a major bottleneck in building dynamic data interfaces—manually parsing frontend query rules into backend SQL. By adopting it, we can:
Key Benefits:
ROI Hook:
Ask:
*"This package (QueryBuilderParser) solves a painful, repetitive problem: translating jQuery QueryBuilder rules into backend queries. Here’s why it’s a drop-in solution for Laravel 12/13:
What It Does:
{"condition":"AND","rules":[...]}) into Eloquent/QueryBuilder queries.jenssegers/mongodb) with the same API.EXISTS, NOT EXISTS).Why Now?
Proposal: Let’s test this for our [Feature X] in Laravel 13. If it handles 80% of our query needs, we can:
Example (Laravel 13):
use timgws\QueryBuilderParser;
// Whitelist columns and parse rules
$qbp = new QueryBuilderParser(['name', 'email'], app()->make('db'));
$query = $qbp->parse($request->queryBuilderRules)->getQuery();
$results = $query->get(); // Optimized for Laravel 13
Trade-offs:
jenssegers/mongodb.Next Steps:
Tech Note:
How can I help you explore Laravel packages today?