PHPackages                             guidofaecke/jsondbquery - 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. guidofaecke/jsondbquery

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

guidofaecke/jsondbquery
=======================

Generate SQL from URL json query string

23PHP

Since Jun 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/guidofaecke/jsonDbQuery)[ Packagist](https://packagist.org/packages/guidofaecke/jsondbquery)[ RSS](/packages/guidofaecke-jsondbquery/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

JsonDbQuery
===========

[](#jsondbquery)

[![Build Status](https://camo.githubusercontent.com/7b4a1d62170cf1b74fabb4f7e10544d05002c77f71587dbe519c30b8ffb572b7/68747470733a2f2f7472617669732d63692e6f72672f677569646f666165636b652f6a736f6e446251756572792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/guidofaecke/jsonDbQuery)

Build simple queries with JSON via REST and RPC calls.

Planned support

- Doctrine
- Zend-Db
- raw SQL

Usage examples
--------------

[](#usage-examples)

### (not yet finalized)

[](#not-yet-finalized)

http://&lt;your\_system&gt;/api/get\_some\_data?query={"field" : {"$not" : val}} http://&lt;your\_system&gt;/api/get\_some\_data?query={"field" : {"$in" : \[value1, value2, ...\]}} http://&lt;your\_system&gt;/api/get\_some\_data?query={"$or": \[{"status": "BLUE"}, {"status": "RED"}\]} http://&lt;your\_system&gt;/api/get\_some\_data?query={"amount": {"$gt": 500}} http://&lt;your\_system&gt;/api/get\_some\_data?query={"amount": {"$lte": 500}} http://&lt;your\_system&gt;/api/get\_some\_data?query={"amount": {"$bt": \[300, 640\]}}

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/06a3a03690d419daef0cef7a3730a0210da9bed57566a160c0b00fece3090acb?d=identicon)[gfaecke](/maintainers/gfaecke)

---

Top Contributors

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

---

Tags

doctrine2jsonphpphp-libraryrestsqlzend-frameworkzf2zf3

### Embed Badge

![Health badge](/badges/guidofaecke-jsondbquery/health.svg)

```
[![Health](https://phpackages.com/badges/guidofaecke-jsondbquery/health.svg)](https://phpackages.com/packages/guidofaecke-jsondbquery)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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