Download the PHP package mapbender/query-builder without Composer

On this page you can find all versions of the php package mapbender/query-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package query-builder

Mapbender QueryBuilder

The QueryBuilder is a Mapbender element. It is a query tool and enables the integration, display and editing of SQL queries and their result visualisation and export via the application interface.

Mapbender

See Official site | Live demo | News on Fosstodon

DOI Packagist License

Installation

Use composer require mapbender/query-builder and register MapbenderQueryBuilderBundle with the Symfony application kernel.

Contributing

Please read official contibuting documentation

QueryBuilder Functionality

You can use the QueryBuilder element in the sidepane.

Depending on the settings, the QueryBuilder allows you to

The respective authorizations for the query options can be assigned in the configuration of the element

Configuration

You need an administration table in your database where you store your sql definitions (see example below).

Example:

There are also some options that you can configure:

You can either modify the queries directly in the database, the query builder also supports manipulating the data directly in mapbender. Since allowing users to modify arbitrary SQL is a potential security threat, in addition to checking the respective checkboxes, users with edit rights also need to be granted a global permission (Security - Global Permissions - QueryBuilder).

In addition to the permissions, the databases that allow executing query builder queries need to be defined in the parameters.yaml file using the parameter querybuilder_allowed_connections, e.g.

The following configuration entries toggle the availability of editing functionality:

Administration table to store the query definitions and metadata

This administration table can be created in an existing database using the following SQL command. This is just an example, you can choose the column names freely, just adjust the configuration accordingly.

The following demodata with SQL queries can be used for the exemplary use. The SQL commands for the creation of the queried tables can be found in the documentation for the digitizer element.


All versions of query-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
doctrine/dbal Version ^3
mapbender/digitizer Version ^2
doctrine/persistence Version ^2 || ^3
mapbender/mapbender Version ^4.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mapbender/query-builder contains the following files

Loading the files please wait ....