Download the PHP package tankfairies/rulesengine without Composer

On this page you can find all versions of the php package tankfairies/rulesengine. 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 rulesengine

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

Rulesengine

Converts conditional statements into optimised asset rules. This gives the ability to store rules in files or databases.

It is important that rules are correctly validated if the rules can be user defined.

This is because the rules are converted into code to make them fast

This is supported and looked after, if there's and functionality you'd like to see; let me know and I'll look into it.

Installation

Install with Composer:

Performance

These tests were run on an Mac M1 Max with 32GB.

Running 100,000 executions 5 times: -

1 => 1.0200 seconds
2 => 1.0146 seconds
3 => 1.0219 seconds
4 => 1.0226 seconds
5 => 1.0206 seconds

Performance increases once the rule has been built: -

1 => 1.0178 seconds
2 => 1.0135 seconds
3 => 1.0180 seconds
4 => 1.0110 seconds
5 => 1.0097 seconds

On Average that's ~100000 calls per second. Performance testing was done with -

Usage

Instantiate a new instance of the library:

The following operators are available to use in rules: -

The following conditions are available to use in rules: -

Sample Rules

Copyright and license

The tankfairies/rulesengine library is Copyright (c) 2019 Tankfairies (https://tankfairies.com) and licensed for use under the MIT License (MIT).


All versions of rulesengine with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 tankfairies/rulesengine contains the following files

Loading the files please wait ....