PHPackages                             abdallah/ecom-rulengine - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. abdallah/ecom-rulengine

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

abdallah/ecom-rulengine
=======================

ecommerce rule engine

14[1 PRs](https://github.com/abdallahnasar/ecom-ruleengine/pulls)PHP

Since May 27Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/abdallahnasar/ecom-ruleengine)[ Packagist](https://packagist.org/packages/abdallah/ecom-rulengine)[ RSS](/packages/abdallah-ecom-rulengine/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Laravel E-commerce Rule Engine
==================================

[](#php-laravel-e-commerce-rule-engine)

1- install package to your laravel project using command:

composer require abdallah/ecom-rulengine

2-add

Abdallah\\EcomRuleEngine\\RuleEngineServiceProvider::class

to providers array in your config/app.php

and

'RuleEngine' =&gt; \\Abdallah\\EcomRuleEngine\\Facades\\RuleEngineFacade::class

inside aliases merge array.

3- run:

php artisan vendor:publish

and select to publish the class provider you just added to providers config.

4- run: php artisan vendor:publish --tag=public --force

to publish css,js files and rules.json where you can change rules conditions and actions.

5- on your browser hit route "/rule-engine" to test rules by submitting a simple frontend, add to cart form by adding one or more items(name &amp; quantity) and hit submit to check or validate rules.

6- if you want to run unit test of package and test all cases you can run ./vendor/bin/phpunit inside package directory vendor/abdallah/ecom-rulengine after running composer update.

or extend TestCase and RuleEngineText to your project tests dir and add your testcases but make sure (in this case) you installed: orchestra/testbench package as it is --dev dependency to our package.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance43

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e461b551ac6251e22efc146dfa681d9dd7ac8d4c59f0156c7c137cd7dbc561d?d=identicon)[abdallahnasar](/maintainers/abdallahnasar)

### Embed Badge

![Health badge](/badges/abdallah-ecom-rulengine/health.svg)

```
[![Health](https://phpackages.com/badges/abdallah-ecom-rulengine/health.svg)](https://phpackages.com/packages/abdallah-ecom-rulengine)
```

###  Alternatives

[ozdemir/datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.

273158.4k](/packages/ozdemir-datatables)[that0n3guy/transliteration

Transliteration provides one-way string transliteration (romanization) and cleans text by replacing unwanted characters.

1296.5k4](/packages/that0n3guy-transliteration)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
