kphoen/rulerz-spec-builder 问题修复 & 功能扩展

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

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

kphoen/rulerz-spec-builder

最新稳定版本:1.2.0

Composer 安装命令:

composer require kphoen/rulerz-spec-builder

包简介

Specification builder for RulerZ

README 文档

README

This library provides an object-oriented way to build Specifications for RulerZ.

Installation

composer require 'kphoen/rulerz-spec-builder' 

Usage

$spec = Expr::andX( Expr::equals('gender', 'F'), Expr::moreThan('points', 3000) );

This is equivalent to gender = "F" and points > 3000

Here is a more complex example:

$spec = Expr::orX( Expr::andX( Expr::equals('gender', 'F'), Expr::moreThan('points', 3000) ), Expr::andX( Expr::equals('gender', 'M'), Expr::moreThan('points', 6000) ) );

Which is equivalent to: (gender = "F" and points > 3000) or (gender = "M" and points > 6000)

See the Expr class for an exhaustive list of supported methods.

License

This library is under the MIT license.

统计信息

  • 总下载量: 48.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 5

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固