ghostcompiler/laravel-querybuilder
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| eloquent-filter/filter | 0.87 | Eloquent Filter adds request-driven filtering to Laravel Eloquent models. Define allowed filters and custom filter classes, then filter queries through query-string parameters, keeping APIs, admin panels, and search endpoints clean, composable, and easy to maintain. | 445 | 447 | 41 | 25 | 7 | 12.3 | 4.3 | MIT | 8 months ago | |
| lomkit/laravel-rest-api | 0.87 | lomkit/laravel-rest-api is a Laravel package for quickly building production-ready JSON APIs. Define resources declaratively and get automatic CRUD endpoints, powerful filters, sorting, pagination, relationship includes, validation, authorization, and OpenAPI docs while staying close to Laravel conv... | 600 | — | 34 | — | 11 | 23.6 | 5.2 | MIT | 2 months ago | |
| fico7489/laravel-eloquent-join | 0.86 | Laravel Eloquent Join adds SQL JOIN support to Eloquent models and relationships, letting you sort, filter, and query joined tables directly while keeping familiar query builder syntax. It simplifies complex relationship queries and helps avoid extra queries. | 338 | — | 87 | — | 11 | 7.6 | 4.1 | MIT | 1 year ago |
|
| laravellegends/eloquent-filter | 0.86 | — | 39 | 39 | 8 | 770 | 0 | 1.3 | 18.0 | MIT | 4 years ago | |
| onemustcode/query | 0.86 | — | 4 | 4 | 2 | 624 | 5 | 4.4 | 30.0 | MIT | 8 years ago | |
| tpetry/laravel-query-expressions | 0.86 | 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. | 357 | 359 | 29 | 118K | 1 | 2.9 | 34.8 | MIT | — | |
| studiomado/query-bundle | 0.86 | Query Bundle is a Laravel package for building reusable, composable Eloquent queries. It helps move complex filtering, sorting, and data retrieval logic into dedicated query classes, keeping controllers and models cleaner and making database queries easier to maintain and test. | 13 | 13 | 4 | 0 | 12 | 3.9 | 3.8 | MIT | 4 years ago | |
| ceddyg/query-builder-repository | 0.86 | 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 | — | — | |
| socialblue/laravel-query-adviser | 0.86 | — | 20 | 20 | 1 | 203 | 0 | 9.5 | 15.0 | MIT | 3 years ago | |
| laravie/query-filter | 0.86 | 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 | |
| zing/laravel-query-builder | 0.86 | A Laravel package for building cleaner, reusable Eloquent queries with composable filters, sorting, and relationship helpers—keeping controllers and models concise while making complex database queries easier to organize and maintain. | 4 | 4 | 1 | 3 | 1 | 7.7 | 3.0 | MIT | 7 months ago | |
| anourvalar/eloquent-serialize | 0.86 | Serialize and restore Eloquent query builders with ease. Capture chained queries including eager loading, where clauses, and limits, then unserialize later to run them. Supports Laravel 6 through 12. | 117 | 116 | 14 | 6M | 0 | 28.6 | 63.6 | MIT | 1 month ago | |
| mitulgolakiya/laravel-api-generator | 0.86 | Laravel API Generator scaffolds complete RESTful APIs from your database tables: controllers, models, routes, requests, resources, and docs, with pagination, filtering, sorting, and relationship support built in. | 675 | 687 | 141 | 4 | 36 | 9.5 | 9.4 | MIT | 11 years ago | |
| gurgentil/eloquent-filters | 0.86 | gurgentil/eloquent-filters adds clean, reusable filtering to Laravel Eloquent models. Define filter classes for each parameter and let the package whitelist and apply request-based query filters, keeping controllers tidy and searches safe, flexible, and easy to maintain. | 15 | — | 0 | — | 0 | 0.1 | — | MIT | 5 years ago | |
| laraditz/model-filter | 0.85 | Flexible Eloquent model filtering for Laravel with operator support (eq, gte, etc.), AND/OR grouping, and relationship filters via dot notation. Add a Filterable trait and allowlist fields, optionally create filter classes for custom logic, and filter using request params under filters[]. | 0 | 0 | 0 | 23 | 0 | 0.0 | 19.1 | MIT | — | |
| roundly-consulting/query-builder-for-laravel | 0.85 | A fluent query builder for Laravel that makes it easy to compose, filter, and execute database queries with a clean, chainable API. Build complex queries safely with expressive PHP methods and seamless Eloquent integration. | 5 | 5 | 0 | 125 | 0 | 19.4 | 21.6 | MIT | 3 weeks ago | |
| jedrzej/searchable | 0.85 | — | 125 | 127 | 23 | 3K | 12 | 5.1 | 24.4 | MIT | — | |
| laravel-freelancer-nl/fluentaql | 0.85 | A fluent SQL builder for Laravel that lets you compose queries through a chainable PHP API instead of raw strings, keeping statements readable, parameterized, and easy to maintain while retaining full control over the generated SQL. | 12 | 12 | 2 | 311 | 0 | 0.3 | 14.2 | MIT | 4 years ago | |
| phfoxer/apigenerate | 0.85 | phfoxer/apigenerate scaffolds RESTful API endpoints for Laravel apps, generating controllers, routes, requests, resources, and docs from your models so you can ship consistent, ready-to-use APIs with far less boilerplate code. | 40 | 41 | 8 | 1K | 0 | 0.4 | 19.8 | — | 3 years ago | |
| mykeels/laravel-filters | 0.85 | A lightweight Laravel package for declarative, request-driven Eloquent filtering. Define which filters a model allows and let query-string parameters like ?status=active narrow results safely, keeping controllers clean and queries reusable, with support for custom filter logic. | 16 | — | 7 | — | 0 | 0.5 | — | — | — |
How can I help you explore Laravel packages today?