PHP code example of kphoen / rulerz-spec-builder
1. Go to this page and download the library: Download kphoen/rulerz-spec-builder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kphoen / rulerz-spec-builder example snippets
$spec = Expr::andX(
Expr::equals('gender', 'F'),
Expr::moreThan('points', 3000)
);
$spec = Expr::orX(
Expr::andX(
Expr::equals('gender', 'F'),
Expr::moreThan('points', 3000)
),
Expr::andX(
Expr::equals('gender', 'M'),
Expr::moreThan('points', 6000)
)
);