PHPackages                             dikkco/build-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. dikkco/build-query

ActiveLibrary[Framework](/categories/framework)

dikkco/build-query
==================

model query for orm.

0.0.3(5y ago)2140MITPHPPHP &gt;=7.1

Since Nov 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Dikkco/build-query)[ Packagist](https://packagist.org/packages/dikkco/build-query)[ RSS](/packages/dikkco-build-query/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

 build query
=============

[](#-build-query-)

🌈 use for build query.

[![Total Downloads](https://camo.githubusercontent.com/ef8ccf8260c23e99263b33f8a6827796d57f10b2310a53fd56d3a25b07231db1/68747470733a2f2f706f7365722e707567782e6f72672f64696b6b636f2f6275696c642d71756572792f646f776e6c6f616473)](https://packagist.org/packages/dikkco/build-query)[![GitHub (pre-)release](https://camo.githubusercontent.com/6650516117dde8deddaac50774c3a73807c402713cd1ae6bc5205ffea8c7caa8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f64696b6b636f2f6275696c642d71756572792f616c6c2e737667)](https://github.com/dikkco/build-query)

Environment
-----------

[](#environment)

- PHP &gt;= 7.1

Installation
------------

[](#installation)

```
$ composer require dikkco/build-query
```

QuickStart
----------

[](#quickstart)

1. Common filter

```
use Dikkco\Buildable\Constant;
use Dikkco\Buildable\Buildable;

$this->param($params ?? [])
    ->initial(['initial' => 0])
    ->key('avatar')
    ->key('name', Constant::RIGHT)
    ->key('name', Constant::ALL)
    ->inKey('type')
    ->betweenKey('created_at', ['start' => 'create', 'end' => 'end'])
    ->beforeKey('id')
    ->afterKey('id')
    ->unsetKey('initial')
    ->sort('created_at')
    ->result();
```

2. Get order

```
use Dikkco\Buildable\Buildable;

$order = $this
   ->param(array_merge(['update_time' => 'desc'], $params)) //默认更新时间排序
   ->sort(['update_time', 'a.update_time']) //更新时间
   ->sort(['id', 'a.id']) //ID
   ->sort('create_time')
   ->order();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

3

Last Release

1981d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/74995401?v=4)[Dikkco](/maintainers/Dikkco)[@Dikkco](https://github.com/Dikkco)

---

Top Contributors

[![Dikkco](https://avatars.githubusercontent.com/u/74995401?v=4)](https://github.com/Dikkco "Dikkco (4 commits)")

---

Tags

frameworkormtools

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dikkco-build-query/health.svg)

```
[![Health](https://phpackages.com/badges/dikkco-build-query/health.svg)](https://phpackages.com/packages/dikkco-build-query)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
