makinacorpus/query-builder
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| atlas/statement | 0.90 | Atlas.Statement provides portable SQL statement builders for MySQL, PostgreSQL, SQLite, and SQL Server. Connection-independent and works well with PDO, Atlas.Query, and Atlas.Pdo to build queries safely and consistently across databases. | 3 | 3 | 4 | 1K | 1 | 1.1 | 34.6 | MIT | 1 year ago | |
| makinacorpus/goat-query | 0.89 | Goat Query is a Laravel package for composing database queries with a fluent, reusable API. It helps structure filters, joins, and conditions cleanly, making complex Eloquent queries easier to build, maintain, and test. | 2 | 2 | 0 | 23 | 24 | 7.1 | 20.7 | GPL-2.0 | — | |
| 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 | |
| beyondcode/laravel-ask-database | 0.87 | Ask your database questions in plain English. BeyondCode's package uses AI to translate natural language into SQL queries and returns the results, making data exploration easier without writing SQL yourself. | 301 | 276 | 46 | 92 | 0 | 1.6 | 1.1 | MIT | 3 years ago | |
| mouf/magic-query | 0.87 | Magic Query lets PHP developers describe SQL queries in JSON instead of hand-written strings, then compiles them into parameterized SQL with joins, unions and filters handled automatically. This reduces injection risk and makes complex queries easier to build, reuse and maintain across projects. | 20 | 21 | 14 | 4K | 4 | 2.1 | 33.8 | — | 1 year ago | |
| 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 | — | — | |
| studiomado/query-bundle | 0.87 | 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 | |
| megawilddaddy/simple-pdo-query-builder | 0.87 | A lightweight, simple PDO query builder for PHP that lets you construct and execute SQL queries through a clean, chainable API. Great for small projects that need straightforward database access without the overhead of a full ORM. | 0 | 0 | 1 | 0 | 0 | 0.3 | — | MIT | 4 years ago | |
| tpetry/laravel-query-expressions | 0.87 | 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 | — | |
| rexshijaku/sql-to-laravel-builder | 0.86 | 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 | 0.8 | MIT | 4 years ago | |
| micayael/native-query-from-file-builder-bundle | 0.86 | A Symfony bundle for building native SQL queries from file-based definitions, helping you keep complex queries organized outside your PHP code and reuse them across your application. | 0 | 0 | 0 | 76 | 0 | 0.0 | 26.1 | MIT | — | |
| williamoliveira/eloquent-array-query-builder | 0.86 | Query PHP arrays with a familiar Eloquent-style API. Filter, sort, group, and paginate in-memory data using where, orderBy, and limit methods, bringing Laravel's query builder ergonomics to plain arrays and collections without touching a database. | 18 | — | 11 | — | 1 | 0.6 | — | — | 6 years ago | |
| itul/sql-to-laravel | 0.86 | 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 | — | — | |
| bavix/clickhouse-builder | 0.86 | PHP 7.1+ query builder for ClickHouse. Build and execute SELECT queries with a fluent API: select columns with aliases, closures for complex expressions or subqueries, and integrate with the-tinderbox/clickhouse-php-client for execution. | 0 | 0 | 0 | 3K | 0 | 7.6 | 50.7 | MIT | 8 months ago | |
| bjerke/api-query-builder | 0.86 | Simplify API query handling in Laravel with a fluent query builder that turns request parameters into filtered, sorted, and paginated Eloquent queries. Reduce boilerplate and keep filtering logic consistent and reusable across your endpoints. | 26 | 26 | 2 | 152 | 1 | 0.3 | 11.3 | MIT | 3 years ago | |
| sbamtr/laravel-query-enrich | 0.86 | A Laravel package that adds expressive query enrichment helpers, letting you append computed values, relationships, and metadata to Eloquent results cleanly while reducing boilerplate and keeping data shaping close to your queries. | 142 | 142 | 6 | 878 | 1 | 12.9 | 13.0 | MIT | 5 months ago | |
| sehrgut/eloquery | 0.86 | eloquery is a small Laravel package that adds convenient helpers for building Eloquent queries, aimed at reducing boilerplate when filtering, sorting, and composing database queries in your models. | 4 | 3 | 2 | 0 | 1 | 0.1 | — | MIT | — | |
| mindy/query_builder | 0.86 | mindy/query_builder offers a fluent, Laravel-style PHP API for building SQL queries programmatically, with composable selects, joins, wheres, and bindings to keep database code readable and safe. | 0 | 1 | 1 | 59 | 0 | 0.0 | 24.6 | MIT | 8 years ago | |
| makinacorpus/goat-query-bundle | 0.86 | Symfony bundle integrating MakinaCorpus Goat Query, a lightweight SQL query builder. Configure database connections and compose fluent, parameterized SELECT, INSERT, UPDATE, and DELETE queries through a clean API, simplifying data access in Symfony applications. | 0 | 0 | 0 | 6 | 2 | 0.4 | 11.7 | GPL-2.0 | — | |
| architools/laravel-sieve | 0.86 | A Laravel package that adds a lightweight, composable filtering layer to Eloquent queries. Define sieves to sift model results by request parameters, keeping controllers clean and query logic reusable across your app. | 14 | 14 | 0 | 2 | 0 | 0.1 | 0.8 | — | — |
How can I help you explore Laravel packages today?