PHPackages                             viloveul/query-search - 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. [Database &amp; ORM](/categories/database)
4. /
5. viloveul/query-search

ActiveLibrary[Database &amp; ORM](/categories/database)

viloveul/query-search
=====================

Building raw query with multiple column filter

v1.x-dev(5y ago)00MITPHPPHP ^7.2

Since Nov 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/viloveul/query-search)[ Packagist](https://packagist.org/packages/viloveul/query-search)[ RSS](/packages/viloveul-query-search/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Search Expression
=================

[](#search-expression)

```
$query = 'SELECT * FROM prefix_tbl /* where condition */';
$count = 'SELECT count(*) from prefix_tbl /* where condition */';
$config = [
	'order' => [
		'foo' => 'tbl.your',
		'bar' => 'tbl.name'
	],
	'filter' => [
		'tbl.your like {%foo}',
		'tbl.name = {bar}'
	]
];
$connection = new Viloveul\Query\Search\DoctrineConnection($doctrine);
$search = new Viloveul\Query\Search\Expression($query, $connection);
$search->withParameter(new Viloveul\Query\Search\Parameter($_GET));
$search->withPrefix('your_table_prefix_');
$search->withCount($count);
$search->configure($config);
$search->execute();

$data = $search->getData();
$total = $search->getTotal();
```

### FILTER

[](#filter)

```
http://your.id/path?filter[foo]=keyword
http://your.id/path?filter[foo]=keyword&filter[bar]=other

```

or

```
http://your.id/path?filter_foo=keyword
http://your.id/path?filter_foo=keyword&filter_bar=other

```

### SORTING

[](#sorting)

```
http://your.id/path?sort=-foo,other
http://your.id/path?sort_asc=foo&sort_desc=bar,other

```

### PAGING

[](#paging)

```
http://your.id/path?page=3
http://your.id/path?page[limit]=30&page[number]=2
http://your.id/path?page_limit=30&page_number=2

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

2041d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609a03f1a38d80aa5cf333dd556cb748371dbcbc880f3c580ecea72ff0fb228b?d=identicon)[zafex](/maintainers/zafex)

---

Top Contributors

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

---

Tags

searchsqlquery

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/viloveul-query-search/health.svg)

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

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[patchlevel/event-sourcing

A lightweight but also all-inclusive event sourcing library with a focus on developer experience

207362.9k13](/packages/patchlevel-event-sourcing)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14385.8k4](/packages/flow-php-doctrine-dbal-bulk)

PHPackages © 2026

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