trinity/search 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

trinity/search

Composer 安装命令:

composer require trinity/search

包简介

Trinity Search bundle

README 文档

README

#Trinity Search

Coverage Status Build Status

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

统计信息

  • 总下载量: 4.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 13
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固