trinity / search
Trinity Search bundle
Installs: 4 069
Dependents: 4
Suggesters: 0
Security: 0
Stars: 1
Watchers: 15
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- doctrine/data-fixtures: ~1.1
- doctrine/orm: ~2.5
- friendsofsymfony/rest-bundle: ~2.0
- jms/serializer-bundle: ~2.0
- sensio/framework-extra-bundle: ~3.0 | ~5.0
- symfony/asset: ~3.2
- symfony/config: ~2.8 | ~3.0
- symfony/dependency-injection: ~2.8 | ~3.0
- symfony/http-kernel: ~2.8 | ~3.0
- symfony/property-access: ~2.8 | ~3.0
- symfony/property-info: ~2.8 | ~3.0
- symfony/routing: ~2.8 | ~3.0
- symfony/serializer: ~2.8 | ~3.0
- symfony/validator: ~2.8 | ~3.0
- trinity/utils: ~1.0
Requires (Dev)
- doctrine/doctrine-bundle: ~1.6
- fzaninotto/faker: ~1.5
- knplabs/doctrine-behaviors: ~1.3
- phpstan/phpstan: ~0.7
- phpunit/phpunit: ~6.0
- satooshi/php-coveralls: ~1.0
- symfony/browser-kit: ~2.8 | ~3.0
- symfony/console: ~2.8 | ~3.0
- symfony/debug: ~2.8 | ~3.0
- symfony/form: ~2.8 | ~3.0
- symfony/security-bundle: ~2.8 | ~3.0
- symfony/twig-bundle: ~2.8 | ~3.0
- symfony/var-dumper: ~2.8 | ~3.0
This package is not auto-updated.
Last update: 2024-11-14 14:56:42 UTC
README
#Trinity Search
Trinity search is part of Trinity package.
Description:
- Finds array of objects by given query
Base route:
/admin/search/{entity}/?q=
##Syntax Append query to the base route. Query can be composed of:
- (optional) Column selection - put columns which you want to return into simple brackets. If you want to access column from associated table, simply put colon and name of the column from associated table
(column1,column2,column3,column4:attributeFromAssociatedTable:anotherAttribute)
- (optional) Conditions - put conditions into curly brackets. Available operators: <, >, =, <=, >=, !=, AND, OR
{column1 > 500 AND column2 < 800 OR (column3 = <str>JohnDoe</str> AND column4 <= 20)}
- String Values must be wrapped inside block
{name = <str>Jack</str> AND description LIKE <str>%it started as "game"%</str>}
- (optional) Limit - for limit 5 rows simply append
LIMIT=5
- (optional) Offset - for offset 10 rows simply append
OFFSET=10
- (optional) Ordering - for ordering result, append keyword ORDER BY and then columns and directions by which you want to order, multiple columns ordering are supported - separate columns by comma
ORDERBY column1 ASC, column2 DESC
#####Example
/admin/search/product/?q= (id,name,defaultBillingPlan:initialPrice) {defaultBillingPlan:initialPrice > "14"} LIMIT=10 OFFSET=0 ORDERBY clients:name ASC, defaultBillingPlan:initialPrice DESC