PHPackages                             endeavourplatforms/qbjs-parser - 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. endeavourplatforms/qbjs-parser

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

endeavourplatforms/qbjs-parser
==============================

Parse JSON coming from jQuery QueryBuilder, into database queries.

1.0.0(3y ago)08611MITPHPPHP &gt;=7.0

Since Mar 22Pushed 3y agoCompare

[ Source](https://github.com/EndeavourPlatforms/QBJSParser)[ Packagist](https://packagist.org/packages/endeavourplatforms/qbjs-parser)[ Docs](https://github.com/endeavourplatforms/QBJSParser)[ RSS](/packages/endeavourplatforms-qbjs-parser/feed)WikiDiscussions master Synced 1mo ago

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

Query Builder JS Parser
=======================

[](#query-builder-js-parser)

[![StyleCI](https://camo.githubusercontent.com/4dfa89a2223cb19a04f78eaee1f49cbb2440285378f721e7c38c9798938b0787/68747470733a2f2f7374796c6563692e696f2f7265706f732f36383830343331392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/68804319)[![Build Status](https://camo.githubusercontent.com/f98e2ea917fb6c687558edcb5f5d33a1c27a38ccc65b6f8c380c5d38b5a40d11/68747470733a2f2f7472617669732d63692e6f72672f666f75726c6162736c646e2f51424a535061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fourlabsldn/QBJSParser)[![Coverage Status](https://camo.githubusercontent.com/57a03a058ab2bebda541e6a43629da099ee578f2555695239d895a002d88b9ed/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f666f75726c6162736c646e2f51424a535061727365722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/fourlabsldn/QBJSParser?branch=master)[![License](https://camo.githubusercontent.com/786ae8fed9d06d2654d676cb003a2bb558fde8109d16b1a22156584c04faa1c1/68747470733a2f2f706f7365722e707567782e6f72672f666f75726c6162732f71626a732d7061727365722f6c6963656e7365)](https://packagist.org/packages/fourlabs/qbjs-parser)[![Total Downloads](https://camo.githubusercontent.com/d5f7a638ef9f7b2ab6e1f29b96dcbb650a28f4f3d27aadb27fb0384a5ff576db/68747470733a2f2f706f7365722e707567782e6f72672f666f75726c6162732f71626a732d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/fourlabs/qbjs-parser)

Parse JSON coming from [jQuery QueryBuilder](http://querybuilder.js.org/), such as

```
{
   "condition": "AND",
   "rules": [
     {
       "id": "price",
       "field": "price",
       "type": "double",
       "input": "text",
       "operator": "less",
       "value": "10.25"
     }
   ]
 }
```

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

[](#installation)

```
    $ composer require fourlabs/qbjs-parser
```

Quick Tour
----------

[](#quick-tour)

- `FL\QBJSParser\Serializer\JsonDeserializer::deserialize()` deserializes a JSON string into an instance of `FL\QBJSParser\Model\RuleGroup`
- This `RuleGroup` object can then be parsed into something your ORM/ODM can use, to create a query.
- Parsers live at `FL\QBJSParser\Parser`.

Available Parsers
-----------------

[](#available-parsers)

- [**Doctrine Parser**](Documentation/Parsers/Doctrine.md)

Tests
-----

[](#tests)

To run the test suite, you need [composer](http://getcomposer.org).

```
    $ composer install
    $ phpunit
```

License
-------

[](#license)

QBJSParser is licensed under the MIT license.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.2% 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

1151d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32a4fe6bcece4eeb8bc5414701abaf02a0761607244f5d64f22a73d7040a34ac?d=identicon)[Endeavour](/maintainers/Endeavour)

---

Top Contributors

[![galeaspablo](https://avatars.githubusercontent.com/u/12404647?v=4)](https://github.com/galeaspablo "galeaspablo (83 commits)")[![jonny-no1](https://avatars.githubusercontent.com/u/282458?v=4)](https://github.com/jonny-no1 "jonny-no1 (4 commits)")[![Sorru](https://avatars.githubusercontent.com/u/5328326?v=4)](https://github.com/Sorru "Sorru (4 commits)")[![marczuk](https://avatars.githubusercontent.com/u/13865116?v=4)](https://github.com/marczuk "marczuk (1 commits)")

---

Tags

phpsymfonyparserormdoctrinequerybuilderjqueryQBJSParserQBJSquerybuilder.jsquerybuilder.js.orgjQuery-QueryBuilder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/endeavourplatforms-qbjs-parser/health.svg)

```
[![Health](https://phpackages.com/badges/endeavourplatforms-qbjs-parser/health.svg)](https://phpackages.com/packages/endeavourplatforms-qbjs-parser)
```

###  Alternatives

[fourlabs/qbjs-parser

Parse JSON coming from jQuery QueryBuilder, into database queries.

2535.3k2](/packages/fourlabs-qbjs-parser)[fourlabs/qbjs-parser-bundle

This bundle is a Symfony wrapper for fourlabs/qbjs-parser.

1514.7k1](/packages/fourlabs-qbjs-parser-bundle)[omines/datatables-bundle

Symfony DataTables Bundle with native Doctrine ORM, Elastica and MongoDB support

2851.4M6](/packages/omines-datatables-bundle)[goodwix/doctrine-json-odm

JSON Object-Document Mapping bundle for Symfony and Doctrine

2226.0k](/packages/goodwix-doctrine-json-odm)[andanteproject/soft-deletable-bundle

A Symfony Bundle to handle soft deletable with Doctrine Entities

1028.3k](/packages/andanteproject-soft-deletable-bundle)

PHPackages © 2026

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