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 6d 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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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

1995d 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

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[rennokki/laravel-eloquent-query-cache

Adding cache on your Laravel Eloquent queries' results is now a breeze.

1.1k4.0M14](/packages/rennokki-laravel-eloquent-query-cache)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[foolz/sphinxql-query-builder

A PHP query builder for SphinxQL and ManticoreQL with MySQLi and PDO drivers.

3232.2M32](/packages/foolz-sphinxql-query-builder)[mehdi-fathi/eloquent-filter

Eloquent Filter adds custom filters automatically to your Eloquent Models in Laravel.It's easy to use and fully dynamic, just with sending the Query Strings to it.

450191.6k1](/packages/mehdi-fathi-eloquent-filter)[illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

168237.4k](/packages/illuminated-db-profiler)

PHPackages © 2026

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