2017 © Pedro Peláez
 

library rulerz-spec-builder

Specification builder for RulerZ

image

kphoen/rulerz-spec-builder

Specification builder for RulerZ

  • Sunday, December 10, 2017
  • by K-Phoen
  • Repository
  • 1 Watchers
  • 6 Stars
  • 809 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 50 % Grown

The README.md

RulerZ Specification builder Build Status

This library provides an object-oriented way to build Specifications for RulerZ., (*1)

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, (*2)

Here is a more complex example:, (*3)

$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), (*4)

See the Expr class for an exhaustive list of supported methods., (*5)

License

This library is under the MIT license., (*6)

The Versions

10/12 2017

dev-master

9999999-dev

Specification builder for RulerZ

  Sources   Download

MIT

The Requires

 

The Development Requires

specification builder rulerz

10/12 2017

1.1.0

1.1.0.0

Specification builder for RulerZ

  Sources   Download

MIT

The Requires

 

The Development Requires

specification builder rulerz

13/09 2017

1.0.0

1.0.0.0

Specification builder for RulerZ

  Sources   Download

MIT

The Requires

 

The Development Requires

specification builder rulerz