maldoinc/doctrine-filter 问题修复 & 功能扩展

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

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

maldoinc/doctrine-filter

最新稳定版本:v2.0.0

Composer 安装命令:

composer require maldoinc/doctrine-filter

包简介

Quickly add advanced filtering/searching and sorting capabilities to any resource in your APIs or Web apps that use Doctrine.

README 文档

README

Quickly add advanced filtering and sorting capabilities to any resource in your APIs or Web apps that use Doctrine.

License PHP Version Require Version Unit tests Lint

Requirements
  • PHP >= 7.4
  • Doctrine >= 2.0

Examples

Products with a price range between 100 and 200

GET /products?price[gte]=100&price[lte]=200

Users with a birthday after 1 Jan 2000

GET /users?birthday[gte]=2000-01-01

Users with an email ending with gmail.com

GET /users?email[ends_with]=gmail.com

Customers whose subscription field is null

GET /customers?subscription[is_null]

Users ordered by their last name in descending order

GET /users?orderBy[lastName]=desc

For this query only the status filter and order by id desc will be applied. Any keys not in the specified filter or orderBy format will be ignored

GET /todos?status[eq]=done&page=1&perPage=10&orderBy[id]=desc

Documentation

Read the documentation here

统计信息

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

GitHub 信息

  • Stars: 60
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-23