Download the PHP package fourlabs/qbjs-parser-bundle without Composer
On this page you can find all versions of the php package fourlabs/qbjs-parser-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fourlabs/qbjs-parser-bundle
More information about fourlabs/qbjs-parser-bundle
Files in fourlabs/qbjs-parser-bundle
Download fourlabs/qbjs-parser-bundle
More information about fourlabs/qbjs-parser-bundle
Files in fourlabs/qbjs-parser-bundle
Vendor fourlabs
Package qbjs-parser-bundle
Short Description This bundle is a Symfony wrapper for fourlabs/qbjs-parser.
License MIT
Homepage https://github.com/fourlabsldn/QBJSParserBundle
Package qbjs-parser-bundle
Short Description This bundle is a Symfony wrapper for fourlabs/qbjs-parser.
License MIT
Homepage https://github.com/fourlabsldn/QBJSParserBundle
Please rate this library. Is it a good library?
Informations about the package qbjs-parser-bundle
QBJSParserBundle
This is a Symfony bundle, which can be used with jQuery QueryBuilder.
- It will parse JSON coming from the frontend, and let you execute it as a Doctrine ORM query.
- It will give you JSON to generate the frontend, based on your Doctrine ORM entities and configuration.
- It is based on QBJSParser, which can be used without Symfony.
It has two useful services:
fl_qbjs_parser.json_query_parser.doctrine_orm_parser
based on classFL\QBJSParserBundle\Service\JsonQueryParser\DoctrineORMParser
- This will parse a
$jsonString
coming from JQuery QueryBuilder, and a$className
, into aFL\QBJSParser\Parsed\Doctrine\ParsedRuleGroup
. - The
ParsedRuleGroup
has two properties,$dqlString
and$parameters
, accessible via getters. - Use the
ParsedRuleGroup
properties, to create a Doctrine Query. - This service is to be used with DoctrineORM.
- This service implements
JsonQueryParserInterface
. More parsers could exist for other ORMs / ODMs.
- This will parse a
fl_qbjs_parser.builders
based on classFL\QBJSParserBundle\Service\JavascriptBuilders
- Use the service's
getBuilders()
, to fetch an array ofFL\QBJSParserBundle\Model\Builder\Builder
instances. - Each
Builder
comes with five properties, accessible via getters,$className
,$jsonString
,$humanReadableName
,$builderId
, and$resultColumns
. - Use the properties of a
Builder
, to instantiate a JQuery Query Builder in your front-end.
- Use the service's
Installation
composer require fourlabs/qbjs-parser-bundle
-
Add the Bundle to app/AppKernel.php
- Set up configuration, as detailed below.
Configuration Example
Usage Example
fl_qbjs_parser.json_query_parser.doctrine_orm_parser
fl_qbjs_parser.builders
Events
The bundle also comes with an event, that allows you to override fl_qbjs_parser.builders
. You can currently override values, the input type, and operators.
Here's an example of the configuration for a listener, for such an event.
All versions of qbjs-parser-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
fourlabs/qbjs-parser Version ~1.0
symfony/config Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/dependency-injection Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/http-kernel Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/event-dispatcher Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/property-info Version ~2.8|~3.0|~3.1|^4.0|^5.0
fourlabs/qbjs-parser Version ~1.0
symfony/config Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/dependency-injection Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/http-kernel Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/event-dispatcher Version ~2.8|~3.0|~3.1|^4.0|^5.0
symfony/property-info Version ~2.8|~3.0|~3.1|^4.0|^5.0
The package fourlabs/qbjs-parser-bundle contains the following files
Loading the files please wait ....