Download the PHP package hongxunpan/eloquent-query-dsl without Composer

On this page you can find all versions of the php package hongxunpan/eloquent-query-dsl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eloquent-query-dsl

Eloquent Query DSL

简体中文文档

hongxunpan/eloquent-query-dsl is an adapter-friendly Eloquent / Builder query DSL core for list endpoints. It turns recurring list-query concerns—search, filter, between, sort, and pagination input—into explicit, testable, reusable query definitions.

It does not own HTTP requests, response envelopes, business exceptions, pagination responses, authorization, tenant rules, or resource-specific field policies. Those concerns belong in your application adapter or service layer.

Current Status

This repository is in pre-1.0 development.

Already in place:

For application adoption:

Documentation

If you are evaluating whether a list-query abstraction belongs in a shared Composer package, start with the selection summary and boundaries below. If you are ready to integrate the package, read the integration guide and canonical examples.

Selection Summary

This package is not an API framework, a repository layer, or a response-format library. It is a low-business-coupling query protocol core for Eloquent list queries.

Typical reasons to choose it:

Typical reasons not to choose it:

Core vs Application Responsibilities

Shared core owns:

Application code owns:

Do not push the following into shared core:

30-second Quick Start

This example shows the smallest default path:

For richer use cases, see High-value Canonical Examples.

Public API Quick Reference

This table is intentionally short. For responsibilities, signatures, extension points, and examples, read API Reference and Extension Points.

API Role
QueryDsl Recommended entrypoint that wires Builder, definition, input, extensions, and returns QueryDslResult
QueryDslResult Holds the mutated Builder, parsed filter values, and pagination facts
DslQueryDefinition Declares allowed search, filter, between, sort, relation paths, defaults, strict mode, and derived behavior
DslInputMap Maps external parameter names to Query DSL sections without changing caller-facing API shape
DslInputParser Full custom input parser contract
DslFilterNormalizer Neutral bridge from application validation / normalization into filter facts
DslPaginationPolicy Controls page / limit / export limit normalization and caps
DslPaginationRequest Neutral pagination facts; it does not execute pagination

Capability Quick Reference

For full status, behavior, adapter boundaries, and rejection reasons, read Query Capability Matrix.

Capability Status Short meaning
Field search Supported search[field => value]; multiple fields are AND; empty strings are ignored
Keyword search Supported one input field OR-matches multiple main-entity fields
Filter Supported scalar becomes where; array becomes whereIn; empty values are ignored; 0 / false are meaningful
Filter rules Supported allowFilter() declares capabilities; filterRules() declares validation / normalization rules such as field.*
Filter normalizer Supported application validation / normalization through DslFilterNormalizer
Derived filter/search Supported explicit extension hooks for application-specific query behavior
Between Supported applies whereBetween; business time-boundary policy stays outside core
Sort Supported explicit sort, default sort, derived default sort, and direction policies
Relation search/filter Supported uses declared relation path mapping and relation scopes
Relation sort Not supported intentionally blocked to avoid implicit join/group semantics
Pagination facts Supported returns normalized facts only; application code executes pagination
HTTP response Adapter application responsibility
Authorization / tenancy Adapter application responsibility

Default Input Shape

The default input shape uses a query wrapper:

This is the default protocol, not a core limitation. Use DslInputMap or DslInputParser when your public API already has different parameter names.

Installation

After Packagist release:

Before a stable tag, use a VCS repository or path repository for evaluation. Production applications should pin an explicit commit or tag, not floating dev-main.

Verification

Inside the package directory, run:

composer quality runs:

CI

The repository provides GitHub Actions workflow at .github/workflows/ci.yml.

Current matrix:

Before tagging or publishing, follow the Release Checklist.


All versions of eloquent-query-dsl with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.20
illuminate/database Version ^9.52 || ^10.0 || ^11.0 || ^12.0
illuminate/pagination Version ^9.52 || ^10.0 || ^11.0 || ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hongxunpan/eloquent-query-dsl contains the following files

Loading the files please wait ...