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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| volosyuk/simple-eloquent | 0.88 | — | 55 | 56 | 10 | 2K | 0 | 1.3 | 21.7 | MIT | 7 years ago | |
| derafu/query | 0.88 | 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 | 19 | 0 | 0.0 | 10.5 | MIT | — | |
| jasny/persist-sql-query | 0.88 | A lightweight PHP package for persisting SQL queries, offering a simple way to store reusable query definitions and execute them later with bound parameters. Useful for keeping complex SQL organized, reducing duplication, and maintaining cleaner database-driven applications. | 33 | — | 8 | — | 2 | 0.8 | — | MIT | 6 years ago |
|
| beeflow/sqlquerymanager | 0.87 | 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. | 1 | 1 | 0 | 0 | 0 | 0.7 | 0.8 | GPL-2.0 | 9 years ago | |
| aglipanci/laravel-eloquent-case | 0.87 | Add case-insensitive where clauses to Laravel Eloquent. This package provides simple, chainable whereCaseInsensitive and orWhereCaseInsensitive methods so you can query models without worrying about letter case, avoiding raw SQL and keeping your code clean and readable. | 116 | — | 10 | — | 0 | 8.5 | — | MIT | 7 months ago | |
| itul/sql-to-laravel | 0.87 | Convert raw SQL into Laravel query builder or Eloquent code. Paste a SQL query and generate equivalent Laravel syntax to speed up refactoring, debugging, and migrating legacy database logic into your application. | 0 | 0 | — | 393 | — | 0.0 | 35.9 | — | — | |
| makinacorpus/query-builder | 0.87 | A fluent SQL query builder for PHP that lets you construct complex SELECT, INSERT, UPDATE, and DELETE queries programmatically through a clean, chainable API. Lightweight and framework-agnostic, it integrates easily into Laravel or any PHP application. | 7 | 7 | 1 | 18K | 14 | 4.1 | 50.1 | MIT | — | |
| ceddyg/query-builder-repository | 0.87 | ceddyg/query-builder-repository is a Laravel package that layers a repository abstraction over the fluent query builder, giving you a clean, reusable data layer for your models. It streamlines CRUD, filtering, and query organization so controllers and services stay lean, readable, and testable. | 11 | — | 7 | — | 3 | 1.0 | 0.4 | — | — | |
| onemustcode/query | 0.87 | — | 4 | 4 | 2 | 624 | 5 | 4.4 | 30.0 | MIT | 8 years ago | |
| lorisleiva/laravel-add-select | 0.87 | Laravel Add Select is a small Laravel package that simplifies appending select columns to existing queries. It provides a fluent helper for adding columns or subqueries to Eloquent and query builder selects without rewriting existing select clauses, making incremental query composition cleaner and m... | 32 | — | 3 | — | 0 | 0.6 | — | MIT | 6 years ago | |
| lastdragon-ru/lara-asp-eloquent | 0.87 | — | 1 | 1 | 0 | 14K | 0 | 0.0 | 53.2 | MIT | — | |
| mohammad-fouladgar/eloquent-builder | 0.87 | — | 525 | 526 | 42 | 3K | 0 | 4.2 | 10.9 | MIT | 7 years ago | |
| mouadziani/laravel-query-inspector | 0.87 | Laravel Query Inspector lets you see the SQL your app actually runs—log queries with bindings, execution time, and where they came from. A lightweight debugging aid for spotting slow, duplicate, or unexpected database calls during development. | 56 | — | 4 | — | 0 | 0.4 | — | MIT | 5 years ago | |
| djl997/laravel-search-query-builder | 0.87 | A Laravel package offering a fluent query builder for composing search filters and database queries, helping you keep complex search logic clean, reusable, and easy to maintain across your application. | 0 | — | 0 | — | 0 | 19.1 | — | MIT | 3 weeks ago | |
| laravie/query-filter | 0.87 | Laravie Query Filter adds a clean, reusable way to filter Eloquent queries from request input. Define filter classes and apply them to models to handle searching, sorting, and conditional constraints without cluttering controllers or repositories. | 74 | 75 | 9 | 3K | 0 | 7.2 | 22.6 | MIT | 2 years ago | |
| kobykorman/eloquentify | 0.87 | Eloquentify turns one custom SQL query with JSON-aggregated relations into fully hydrated nested Eloquent models, collapsing N+1 and R+1 round trips into a single query with zero configuration. | 20 | 20 | 0 | 457 | 0 | 13.6 | 20.7 | MIT | 4 months ago | |
| rexshijaku/sql-to-laravel-builder | 0.87 | Convert raw SQL queries into Laravel query builder syntax with this lightweight package. It parses SQL statements and helps translate existing queries into fluent Laravel code, making legacy SQL easier to migrate, refactor, and maintain. | 186 | 186 | 26 | 3K | 4 | 2.7 | 16.8 | MIT | 4 years ago | |
| leocarmo/laravel-eloquent-model-filter | 0.87 | A Laravel package for adding declarative filters to Eloquent models. Define allowed filters once, apply them from request query strings, and keep complex query logic reusable, readable, and easy to test across your application. | 11 | 11 | 2 | 0 | 0 | 0.1 | — | — | 8 years ago | |
| ralphschindler/basic-query-filter | 0.87 | A lightweight Laravel package for applying request-driven filters to Eloquent queries. Map query-string parameters to allowed columns and operators, keeping filtering logic out of controllers and list endpoints predictable and reusable. | 14 | 14 | 2 | 33 | 0 | 0.1 | 7.0 | Unlicense | 9 years ago | |
| enimiste/laravel-eloquent-filters | 0.87 | Add reusable, composable query filters to Laravel Eloquent models. Define filters once, apply them from requests or code, and keep complex list and search queries clean, consistent, and maintainable. | 24 | — | 4 | — | 0 | 0.2 | — | MIT | — |
How can I help you explore Laravel packages today?