2017 © Pedro Peláez
 

library qbjs-parser

Parse JSON coming from jQuery QueryBuilder, into database queries.

image

fourlabs/qbjs-parser

Parse JSON coming from jQuery QueryBuilder, into database queries.

  • Tuesday, July 10, 2018
  • by fourlabsldn
  • Repository
  • 3 Watchers
  • 17 Stars
  • 6,228 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Query Builder JS Parser

StyleCI Build Status Coverage Status License Total Downloads, (*1)

Parse JSON coming from jQuery QueryBuilder, such as, (*2)

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

Installation

    $ composer require fourlabs/qbjs-parser

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

Tests

To run the test suite, you need composer., (*3)

    $ composer install
    $ phpunit

License

QBJSParser is licensed under the MIT license., (*4)

The Versions

10/07 2018

dev-master

9999999-dev https://github.com/fourlabsldn/QBJSParser

Parse JSON coming from jQuery QueryBuilder, into database queries.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm parser php jquery doctrine symfony querybuilder qbjsparser qbjs querybuilder.js querybuilder.js.org jquery-querybuilder

10/07 2018

1.1.2

1.1.2.0 https://github.com/fourlabsldn/QBJSParser

Parse JSON coming from jQuery QueryBuilder, into database queries.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm parser php jquery doctrine symfony querybuilder qbjsparser qbjs querybuilder.js querybuilder.js.org jquery-querybuilder

10/07 2018

dev-100-percent-coverage

dev-100-percent-coverage https://github.com/fourlabsldn/QBJSParser

Parse JSON coming from jQuery QueryBuilder, into database queries.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm parser php jquery doctrine symfony querybuilder qbjsparser qbjs querybuilder.js querybuilder.js.org jquery-querybuilder

10/07 2018

dev-analysis-z9JK9o

dev-analysis-z9JK9o https://github.com/fourlabsldn/QBJSParser

Parse JSON coming from jQuery QueryBuilder, into database queries.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm parser php jquery doctrine symfony querybuilder qbjsparser qbjs querybuilder.js querybuilder.js.org jquery-querybuilder

17/09 2017

1.0

1.0.0.0 https://github.com/fourlabsldn/QBJSParser

Parse JSON coming from jQuery QueryBuilder, into database queries.

  Sources   Download

MIT

The Requires

 

The Development Requires

orm parser php jquery doctrine symfony querybuilder qbjsparser qbjs querybuilder.js querybuilder.js.org jquery-querybuilder