awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectServer MCPDespreCum realizăm clasamentulPresă
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
spatie avatar

spatie/laravel-query-builder

0
View on GitHub↗
4,453 stele·411 fork-uri·PHP·MIT·6 vizualizărispatie.be/docs/laravel-query-builder↗

Laravel Query Builder

Acest proiect este un wrapper de query builder Eloquent și un parser de query-uri REST API pentru aplicații Laravel. Acesta traduce parametrii cererilor HTTP în interogări de bază de date pentru a oferi filtrare dinamică, sortare și încărcarea relațiilor pentru endpoint-urile API.

Sistemul decuplează interfața API externă de stratul de stocare prin abstractizarea schemei bazată pe alias-uri, permițând numelor publice ale câmpurilor să fie mapate către coloane private ale bazei de date. Suportă includerea dinamică a relațiilor imbricate și a numărătorilor agregate, precum și execuția logicii programatice personalizate pentru filtre și sortare prin clase invokable și closure-uri.

Suprafața de capabilități acoperă proiecția datelor prin selecția câmpurilor și ordonarea rezultatelor pe baza parametrilor cererii. Oferă, de asemenea, mecanisme pentru filtrarea bazată pe relații folosind dot-notation, integrarea cu scope-urile modelelor locale și controlul asupra vizibilității înregistrărilor soft-deleted.

Features

  • Eloquent Query Wrappers - Translates HTTP request parameters into complex database queries using the Eloquent ORM for Laravel applications.
  • Query Parameter Filters - Translates URL query parameters into database filters supporting partial matches, exact matches, and logical groupings.
  • Query Parameter Filters - Translates request parameters into complex database filters using AND/OR logical conjunctions.
  • Dataset Filtering and Search - Provides mechanisms for end users to refine and search through large datasets using dynamic filters and logical groupings.
  • Dynamic Relationship Loading - Loads specified relationships and nested relations based on parameters passed in the request.
  • Dot-Notation Join Paths - Parses nested relationship identifiers using dot-notation to generate database JOIN clauses and filters.
  • Field Selection - Limits the columns returned by a database query based on parameters specified in the request URL.
  • Model Scope Integration - Maps URL filter parameters directly to local Eloquent model scopes.
  • Association-Based Filters - Provides mechanisms to filter records based on attributes of their associated relationships using dot-notation.
  • Eager Loading - Dynamically injects eager loading constraints into the query builder based on requested relation identifiers.
  • Query Sorting - Orders query results based on request parameters, supporting multiple columns, directions, and fallbacks.
  • Dynamic Relation Loaders - Dynamically includes nested database relationships and aggregate counts based on API request parameters.
  • Dynamic Relationship Loading - Allows API clients to specify which nested relationships and aggregate counts should be included in the response.
  • Query Builders - Translates HTTP request parameters into Eloquent database queries for API filtering, sorting, and including.
  • Model Scoping - Triggers local Eloquent model scopes by mapping request parameters to predefined model-level query methods.
  • Request-to-Query Predicate Mapping - Translates HTTP request parameters directly into database query predicates for dynamic filtering.
  • Schema Abstraction Layers - Maps public API field names to private database column names to decouple the external interface from storage.
  • API Query Filtering - Maps URL query strings to database constraints to provide dynamic data filtering for API endpoints.
  • REST API Query Parsers - Builds API endpoints that allow clients to filter, sort, and include related data directly via URL query parameters.
  • Field Aliasing - Hides internal database column names from API consumers by mapping request parameters to specific table fields.
  • Custom Relationship Loaders - Supports executing custom closures or classes to modify the query builder when specific relationships are requested.
  • Sort Field Aliasing - Maps request parameters to internal database columns to hide the underlying schema from API consumers.
  • Relationship Count Aggregators - Attaches relationship counts and aggregate values from associated models to the primary result set.
  • Soft-Delete Query Overrides - Allows API requests to override default soft-delete filters to include or exclude trashed records.
  • Invokable Sorting Classes - Delegates complex ordering requirements to dedicated classes that manually modify the query builder's order clauses.
  • Custom Sorting Logic - Implements arbitrary sorting logic via invokable classes for requirements like string length or raw SQL expressions.
  • Closure-Based Query Constraints - Applies custom database constraints by executing registered closures when specific filter keys are detected.
  • Complex Query Filtering Logic - Enables the execution of custom programmatic logic to apply complex constraints to the database query builder.
  • Query Filtering Integrations - Implements advanced search and sorting logic within Laravel applications using declarative request-based rules.

Istoric stele

Graficul istoricului de stele pentru spatie/laravel-query-builderGraficul istoricului de stele pentru spatie/laravel-query-builder

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Laravel Query Builder

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Laravel Query Builder.
  • prettus/l5-repositoryAvatar prettus

    prettus/l5-repository

    4,205Vezi pe GitHub↗

    This project is a repository pattern library for Laravel applications designed to decouple business logic from database queries and storage implementation. It provides a standardized data access layer to isolate application logic from the underlying storage layer. The library includes a query filter system that translates HTTP request parameters into dynamic database filters, search criteria, and sorting logic. It features an API presenter layer to separate internal data structures from client responses and a cache manager that automatically refreshes stored database results when records are

    PHP
    Vezi pe GitHub↗4,205
  • jeremyevans/sequelAvatar jeremyevans

    jeremyevans/sequel

    5,076Vezi pe GitHub↗

    Sequel is a relational database toolkit for Ruby that provides object-relational mapping, a fluent SQL query builder, and schema migration capabilities. It maps database tables to Ruby classes with support for associations, validations, lifecycle hooks, and eager loading, offering a comprehensive ORM layer for building data-centric applications. Sequel distinguishes itself through a plugin-based extension architecture that allows composable customization of models, databases, and datasets without relying on deep inheritance hierarchies. It includes a thread-safe connection pool with support f

    Ruby
    Vezi pe GitHub↗5,076
  • carltongibson/django-filterAvatar carltongibson

    carltongibson/django-filter

    4,683Vezi pe GitHub↗

    django-filter is a library for filtering Django QuerySets by mapping URL parameters to database lookups using declarative syntax. It functions as a model filter generator and a database lookup tool that translates request parameters into queries to refine data results. The project enables the automatic generation of search filters and user-facing forms based on model field definitions. It supports advanced retrieval logic through custom lookup methods, relationship paths, and full-text search integration, while providing a system for refining results within REST API endpoints. Its capability

    Python
    Vezi pe GitHub↗4,683
  • nestjsx/crudAvatar nestjsx

    nestjsx/crud

    4,330Vezi pe GitHub↗

    This project is a REST API framework for NestJS designed to automate the creation of boilerplate-free CRUD endpoints and resource management. It functions as an automated CRUD generator that produces controllers and services for standard database operations, accelerating the development of RESTful APIs. The toolkit includes a REST query parser that translates complex URL parameters into structured database filters, pagination, and sorting rules. It also operates as an API response serializer to control the exposure of entity fields and manage nested relations within JSON responses. For extend

    TypeScriptcrudcrud-generatornest
    Vezi pe GitHub↗4,330
Vezi toate cele 30 alternative pentru Laravel Query Builder→

Întrebări frecvente

Ce face spatie/laravel-query-builder?

Acest proiect este un wrapper de query builder Eloquent și un parser de query-uri REST API pentru aplicații Laravel. Acesta traduce parametrii cererilor HTTP în interogări de bază de date pentru a oferi filtrare dinamică, sortare și încărcarea relațiilor pentru endpoint-urile API.

Care sunt principalele funcționalități ale spatie/laravel-query-builder?

Principalele funcționalități ale spatie/laravel-query-builder sunt: Eloquent Query Wrappers, Query Parameter Filters, Dataset Filtering and Search, Dynamic Relationship Loading, Dot-Notation Join Paths, Field Selection, Model Scope Integration, Association-Based Filters.

Care sunt câteva alternative open-source pentru spatie/laravel-query-builder?

Alternativele open-source pentru spatie/laravel-query-builder includ: prettus/l5-repository — This project is a repository pattern library for Laravel applications designed to decouple business logic from… jeremyevans/sequel — Sequel is a relational database toolkit for Ruby that provides object-relational mapping, a fluent SQL query builder,… carltongibson/django-filter — django-filter is a library for filtering Django QuerySets by mapping URL parameters to database lookups using… nestjsx/crud — This project is a REST API framework for NestJS designed to automate the creation of boilerplate-free CRUD endpoints… prest/prest — PostgREST is a tool that automatically transforms a PostgreSQL database schema into a production-ready RESTful API. It… doctrine/orm — Doctrine ORM is a PHP object-relational mapper that connects application objects to relational database tables. It…