Download the PHP package littlerobinson/querybuilder-php without Composer
On this page you can find all versions of the php package littlerobinson/querybuilder-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download littlerobinson/querybuilder-php
More information about littlerobinson/querybuilder-php
Files in littlerobinson/querybuilder-php
Package querybuilder-php
Short Description Library for creating query builder with JSON input.
License MIT
Informations about the package querybuilder-php
Query Builder PHP
Generates queries dynamically on a database. The tool allows to set up the configuration of a database in a YML file.
A developer can modify certain values in the configuration file to, for example, translate fields from a table.
The applicant Builder takes as input a json file with the fields to request as well as the conditions. From this file it will construct the query, execute it and return the result.
Configuration file
When executing the writeDatabaseYamlConfig
method it will generate a configuration YAML file with a retro engineering of your database.
You can change :
- table name (_table_translation)
- table visibility (__table_visibility)
- field name (__field_translation)
- field visibility (__field_visibility)
Security
Add this in the config.yml file to tell the program where to find the restriction value.
Or like this with no rules.
Request
When you execute a request it will generate a json value representing the query.
Output
Tests
IHM
IHM is cutting in 3 zones :
- appRequest : It's a parent zone for making the request.
It's include 2 - zones :
- SelectItem : zon of selecting table and rows
- ConditionItem : Zone to build request conditions
- SpreadSheet : Zone for showing research result with grid table
Javascript Variables list in appRequest :
- dbObj : object representation of the JSON database configuration
- foreignTables : List of foreign tables
- items : Object representation of selectable table and rows with checked status and traduction name
- from : Object representing from request (for json query)
- where : Object representing where request (for json query)
- conditions : Array of objects representing conditions request
- columns : column result list with translation
- data : result data
- jsonQuery : json query
- sqlRequest : request query
All versions of querybuilder-php with dependencies
doctrine/orm Version *
symfony/yaml Version *
phpoffice/phpexcel Version ~1.8