Download the PHP package superruzafa/rules without Composer

On this page you can find all versions of the php package superruzafa/rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rules

Rules

Build Status

A rule engine following the condition -> action paradigm

What a rule is?

A rule is build up by three elements:

One condition

Every rule has a boolean condition. If the condition is satisfied (i.e, its value is not false) then the rule is processed.

Some actions

Every rule has some associated actions. The actions could be performed at different rule's stages:

Zero or more subrules

Each rule could contain subrules. Each subrule is executed only if the parent rule's condition has been satisfied.

When executes, the flow a rule follows could be described as:

Quick example

Conditions

Conditions use boolean expressions to check whether the rule must be processed. By default, a rule has a as a condition.

Primitives

There are four predefined primitives:

Operators

Operators take one, two or more values (primitives or other operator's output) and return some other value

Logical operators

operator takes one or more arguments and returns if all of its arguments are evaluated as :

operator takes one or more arguments and returns if any of its arguments are evaluated as :

operator takes one or more arguments and returns if all of its arguments are evaluated as . This is indeed a Nand operation.

Comparison conditions

operator takes two or more arguments and returns if all of its arguments are the same:

operator takes two or more arguments and returns if any of its arguments is different from aonther one:

Actions

Override context

This action updates/extends the current context:

Interpolate context

This action allows to render the current context as a template by feeding itself as the variable replacements:

Filter context

This action filter (either by preserving or discarding) entries in a context:

Run callback

This actions calls a custom user function passing the current context as argument:

No action

This actions does nothing :)

Sequence

This actions allows to define a list of actions to be performed sequentially:


All versions of rules with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
superruzafa/template Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package superruzafa/rules contains the following files

Loading the files please wait ....