digital-backstage/searchable 问题修复 & 功能扩展

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

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

digital-backstage/searchable

Composer 安装命令:

composer require digital-backstage/searchable

包简介

Provides interoperability with pagination libs

README 文档

README

Provides interfaces that allow to search repositories implemented in our libraries in a standardized way.

It defines the following interfaces:

DigitalBackstage\Searchable\Paginable

This one defines the interface for what a Searchable repository should return when queried. It should be immutable, provide a subset of all available items, and pagination information, namely:

  • the number of the current page;
  • the number of the last page;
  • the number of items per page;
  • the number of available items.

Page numbers start from 1. It extends \Traversable, but not \Countable, because that would be very confusing: should it return the number of page? Of available items? Of items in the current page?

DigitalBackstage\Searchable\SearchQuery

Searchable repositories are queried with this object. It consists in an expression, which should be translated to DQL, SQL or JSON by the repository, and should provide information about the desired page number and page size.

DigitalBackstage\Searchable\QueryExpression

This represents an expression, and has several implementations. Repositories should list which implementations they support.

DigitalBackstage\Searchable\SortedSearchQuery

If the client wants to specify a sort order other than the default one, it must implement SortedSearchQuery.

DigitalBackstage\Searchable\Searchable

A repository of objects. Must be queried with a SearchQuery, and must return a Paginable. Must advertise what fields it supports for querying. Should throw PageOutOfRange, and UnsupportedSearchField when appropriate.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固