# Laravel Query Builder

Laravel package that builds Eloquent queries from filter, sort, include and field parameters in an API request.


Source: https://findsoftware.frbit.cloud/laravel-query-builder/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://spatie.be/docs/laravel-query-builder
- repository: https://github.com/spatie/laravel-query-builder
- docs: https://spatie.be/docs/laravel-query-builder/v7/introduction
- bluesky: https://bsky.app/profile/spatie.be
- mastodon: https://phpc.social/@spatie
- youtube: https://www.youtube.com/channel/UCoBbei3S9JLTcS2VeEOWDeQ

### Identity

- status: active
- maintainer: SPATIE BVBA
- maintainerType: company
- parent: unknown
- firstRelease: 2018
- hqCountry: BE

### Kind

- category: library, backend
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 8.4
- basedOn: laravel

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: unknown
- i18n: unknown

### Rendering and deploy

- runsAs: unknown
- renderingModes: unknown
- installMethod: composer require spatie/laravel-query-builder

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 7
- latestReleaseDate: 2026-11-13

### Adoption

- githubStargazers: 4469
- packagistDownloads: 38970219
- npmWeeklyDownloads: not applicable
- contributors: 160
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 960
- dependentPackages: 174

### Sources

- name: https://spatie.be/docs/laravel-query-builder/v7/introduction (read 2026-11-16)
- urls: https://spatie.be/docs/laravel-query-builder/v7/introduction (read 2026-11-16)
- urls: https://api.github.com/repos/spatie/laravel-query-builder (read 2026-11-16)
- urls: https://spatie.be/docs/laravel-query-builder/v7/introduction (read 2026-11-16)
- maintainer: https://spatie.be/privacy (read 2026-11-16)
- maintainerType: https://spatie.be/privacy (read 2026-11-16)
- hqCountry: https://spatie.be/privacy (read 2026-11-16)
- language: https://api.github.com/repos/spatie/laravel-query-builder (read 2026-11-16)
- category: https://github.com/spatie/laravel-query-builder/blob/main/README.md (read 2026-11-16)
- basedOn: https://spatie.be/docs/laravel-query-builder/v7/introduction (read 2026-11-16)
- runtime: https://raw.githubusercontent.com/spatie/laravel-query-builder/7.3.9/composer.json (read 2026-11-16)
- runtimeMin: https://raw.githubusercontent.com/spatie/laravel-query-builder/7.3.9/composer.json (read 2026-11-16)
- installMethod: https://github.com/spatie/laravel-query-builder/blob/main/README.md (read 2026-11-16)
- license: https://api.github.com/repos/spatie/laravel-query-builder (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/spatie/laravel-query-builder/main/LICENSE.md (read 2026-11-16)
- currentMajor: https://api.github.com/repos/spatie/laravel-query-builder/releases/latest (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/spatie/laravel-query-builder/releases/latest (read 2026-11-16)
- firstRelease: https://repo.packagist.org/p2/spatie/laravel-query-builder.json (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/spatie/laravel-query-builder (read 2026-11-16)
- contributors: https://api.github.com/repos/spatie/laravel-query-builder/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/spatie/laravel-query-builder.json (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Flaravel-query-builder (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Flaravel-query-builder (read 2026-11-16)

## Notes

Laravel Query Builder builds Eloquent queries from the filter, sort, include and field parameters of an API request. Its query builder extends Laravel's default Eloquent builder, so the methods and macros of that builder stay available, and the parameter names follow the JSON API specification as closely as possible. The [documentation](https://spatie.be/docs/laravel-query-builder/v7/introduction) shows it working together with existing queries.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
