tpetry/laravel-query-expressions
Add powerful SQL expression support to Laravel’s query builder. Compose reusable, type-safe expressions for functions, casts, JSON ops, windows, and more, with clean syntax and cross-database compatibility—ideal for advanced filtering, sorting, and computed columns.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| timgws/query-builder-parser | 0.85 | Parse jQuery QueryBuilder rules into safe Laravel query builder constraints. Whitelist allowed fields, then generate SQL (Illuminate/Database) or MongoDB queries (via jenssegers/mongodb). Works well with tools like jQuery DataTables for advanced filtering. | 161 | 161 | 74 | 2K | 10 | 27.8 | 22.1 | MIT | 2 months ago | |
| spatie/elasticsearch-query-builder | 0.84 | Lightweight fluent PHP query builder for Elasticsearch. Build searches with queries and aggregations, set index and options, then execute via the official client. Designed to pair with spatie/elasticsearch-search-string-parser; focused feature set, PRs welcome. | 182 | 182 | 47 | 67K | 0 | 31.8 | 41.7 | MIT | 6 days ago | |
| onemustcode/query | 0.84 | — | 4 | 4 | 2 | 266 | 5 | 4.4 | 25.0 | MIT | 8 years ago | |
| ghostcompiler/laravel-querybuilder | 0.84 | API-ready Eloquent query builder for Laravel with strict allow-lists for filters, sorts, includes, and sparse fields. Supports nested relation filters/sorting, custom filters, tenant scoping, safe public query interfaces, and pagination helpers for clean API responses. | 18 | 18 | 0 | 395 | 0 | 17.9 | 21.3 | MIT | 1 month ago | |
| mohammad-fouladgar/eloquent-builder | 0.83 | — | 526 | 527 | 42 | 1K | 0 | 4.2 | 7.2 | MIT | 7 years ago | |
| mpyw/eloquent-has-by-join | 0.83 | — | 23 | 25 | 4 | 440 | 0 | 1.2 | 13.5 | MIT | 4 years ago | |
| socialblue/laravel-query-adviser | 0.83 | — | 20 | 20 | 1 | 113 | 0 | 9.5 | 11.9 | MIT | 2 years ago | |
| derafu/query | 0.82 | Expressive path-based query builder for PHP from Derafu. Build queries using readable, JSONPath-like paths for nested data structures and collections. Lightweight package with full documentation at derafu.dev/docs/data/query. | 3 | 3 | 0 | 7 | 0 | 0.0 | 6.1 | MIT | — | |
| aitradeinc/php-sql-parser | 0.82 | A PHP SQL parser library for analyzing SQL strings. Parse queries into structured data (AST/array) you can inspect, validate, rewrite, or use for tooling like linters, query builders, or migration helpers. Lightweight package for PHP applications. | 0 | 0 | 1 | 0 | 0 | 0.9 | — | MIT | 4 years ago | |
| spatie/laravel-query-builder | 0.82 | Build safe, flexible Eloquent queries from incoming API requests. Supports whitelisted filtering (partial/exact/scope/custom), sorting, includes, field selection, pagination, and grouped AND/OR filters—ideal for JSON:API-style endpoints with minimal boilerplate. | 4,461 | 4,474 | 420 | 1M | 0 | 66.6 | 39.9 | MIT | 3 days ago | |
| mpyw/eloquent-has-by-non-dependent-subquery | 0.82 | — | 79 | 84 | 10 | 3K | 0 | 1.5 | 16.1 | MIT | 4 years ago | |
| ecommit/doctrine-utils | 0.82 | Small set of Doctrine ORM QueryBuilder utilities: accurate COUNT helpers, a paginator, and filter helper methods. Install via Composer and use to simplify common query building patterns in your PHP projects. | 0 | 0 | 1 | 220 | 0 | 0.0 | 32.4 | MIT | — | |
| volosyuk/simple-eloquent | 0.81 | — | 55 | 56 | 10 | 1K | 0 | 1.3 | 19.5 | MIT | 6 years ago | |
| lastdragon-ru/lara-asp-eloquent | 0.80 | — | 1 | 1 | 0 | 5K | 0 | 0.0 | 46.0 | MIT | — | |
| pdphilip/elasticsearch | 0.78 | Eloquent-style Elasticsearch for Laravel. Extend models and the query builder with native-feeling search features like term and phrase-prefix queries, match/fuzzy matching, highlighting, geo distance filters, plus familiar create/update/delete and pagination APIs. | 0 | 2 | — | 32K | — | 10.5 | 55.3 | — | — | |
| astrotomic/laravel-translatable | 0.77 | Laravel package for translatable Eloquent models. Store model translations in the database and automatically fetch/save multilingual attributes based on locale, reducing boilerplate when working with multi-language content. | 1,421 | 1,432 | 176 | 223K | 28 | 43.8 | 46.2 | MIT | 4 months ago | |
| omaralalwi/laravel-time-craft | 0.77 | — | 13 | 13 | 3 | 301 | 0 | 20.9 | 21.9 | MIT | 2 weeks ago | |
| hungneox/ramen-elastic-query | 0.77 | — | 7 | 7 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| nicolaslopezj/searchable | 0.77 | — | 1,998 | 2,026 | 290 | 54K | 103 | 47.7 | 43.9 | MIT | 6 years ago | |
| symfony/expression-language | 0.77 | Symfony ExpressionLanguage provides a fast engine to evaluate and compile simple one-line expressions (often boolean rules). Use it to embed dynamic conditions, calculations, and access to variables/functions in a safe, extensible way. | 2,840 | 2,861 | 45 | 5M | 0 | 45.3 | 51.9 | MIT | 1 month ago |
How can I help you explore Laravel packages today?