Download the PHP package heyday/silverstripe-querybuilder without Composer
On this page you can find all versions of the php package heyday/silverstripe-querybuilder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heyday/silverstripe-querybuilder
More information about heyday/silverstripe-querybuilder
Files in heyday/silverstripe-querybuilder
Package silverstripe-querybuilder
Short Description Builds complex and composable queries to retrieve ArrayLists in SilverStripe
License MIT
Informations about the package silverstripe-querybuilder
SilverStripe Query Builder
Provides a way to create queries that are flexible and reusable in SilverStripe. A lot like Search Filters.
Installation (with composer)
Installing from composer is easy,
Create or edit a composer.json
file in the root of your SilverStripe project, and make sure the following is present.
After completing this step, navigate in Terminal or similar to the SilverStripe root directory and run composer install
or composer update
depending on whether or not you have composer already in use.
Overview
Query builder is a wrapper around the SQLQuery
object, providing two ways to modify the SQLQuery
object:
Heyday\QueryBuilder\Interfaces\QueryModifierInterface
- Closure with function signiture
SQLQuery $query, array $data, QueryBuilderInterface $queryBuilder
Usage
Implementing QueryModifierInterface
This is a very general modifier, modifiers you build might be more specific to your model.
Using a modifier with QueryBuilder
License
SilverStripe Query Builder is licensed under an MIT license
All versions of silverstripe-querybuilder with dependencies
composer/installers Version ~1.0
silverstripe/framework Version >=3.1.14 < 3.8.0