PHPackages                             vaanijya/line-item-price-rule-engine - 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. vaanijya/line-item-price-rule-engine

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

vaanijya/line-item-price-rule-engine
====================================

Rule Engine for calculating the Total Price of a Line Item

v0.1.0(8y ago)012Apache-2.0PHPPHP &gt;=5.5

Since Mar 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vaanijya/line-item-price-rule-engine)[ Packagist](https://packagist.org/packages/vaanijya/line-item-price-rule-engine)[ Docs](https://github.com/vaanijya/line-item-price-rule-engine)[ RSS](/packages/vaanijya-line-item-price-rule-engine/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Rule Engine for calculating the Total Price of a Line Item
==========================================================

[](#rule-engine-for-calculating-the-total-price-of-a-line-item)

[![Build Status](https://camo.githubusercontent.com/5631e56bd023b1bb694ffffd9f3a1e82c2e04cf02791fc83707dd3057b7ebc13/68747470733a2f2f7472617669732d63692e6f72672f7661616e696a79612f6c696e652d6974656d2d70726963652d72756c652d656e67696e652e7376673f6272616e63683d76302e31)](https://travis-ci.org/vaanijya/line-item-price-rule-engine)

Run the rule engine by suppliing the line item to calculate the all price modifications for that line item

Rules Provider must be supplied as configuration

How to use
----------

[](#how-to-use)

```
Vaanijya\LineItemPriceRuleEngine\RuleEngine::run(Vaanijya\LineItemPriceRuleEngine\LineItem $lineItem);
```

Configuration
-------------

[](#configuration)

```
{
    "rulesProvider":"MyPackage\\MyRulesProvider"
}
```

`MyPackage\\MyRulesProvider` is expected to implement `Vaanijya\LineItemPriceRuleEngine\RulesProvider` Interface

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3031d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92306cd4ec1342daeba6fb633880eb9907cdd022874ae39be11ab7ae274171c7?d=identicon)[Raaghu](/maintainers/Raaghu)

---

Top Contributors

[![Raaghu](https://avatars.githubusercontent.com/u/8255650?v=4)](https://github.com/Raaghu "Raaghu (15 commits)")

---

Tags

discountscommercetaxtransactionorderline item

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vaanijya-line-item-price-rule-engine/health.svg)

```
[![Health](https://phpackages.com/badges/vaanijya-line-item-price-rule-engine/health.svg)](https://phpackages.com/packages/vaanijya-line-item-price-rule-engine)
```

###  Alternatives

[mpociot/vat-calculator

EU VAT calculation, the way it should be.

1.3k4.2M22](/packages/mpociot-vat-calculator)[commerceguys/tax

Tax library with a flexible data model, predefined tax rates, powerful resolving logic.

284775.0k](/packages/commerceguys-tax)[kornrunner/ethereum-offline-raw-tx

Pure PHP Ethereum Offline Raw Transaction Signer

64204.6k22](/packages/kornrunner-ethereum-offline-raw-tx)[ddeboer/vatin-bundle

Symfony bundle for the VATIN library

29933.2k](/packages/ddeboer-vatin-bundle)[egeloen/ordered-form

Provides a form ordering support with the Symfony2 form component.

32615.5k1](/packages/egeloen-ordered-form)[sylius/promotion-bundle

Manage ecommerce promotions system in your Symfony application.

19441.6k4](/packages/sylius-promotion-bundle)

PHPackages © 2026

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