vaanijya / line-item-price-rule-engine
Rule Engine for calculating the Total Price of a Line Item
v0.1.0
2018-03-14 03:15 UTC
Requires
- php: >=5.5
- php-platform/config: ~0.1
- php-platform/errors: ~0.1
Requires (Dev)
- php-platform/mock-config: ~0.1
- phpunit/phpunit: ~4.8
This package is not auto-updated.
Last update: 2025-01-05 06:55:28 UTC
README
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
Vaanijya\LineItemPriceRuleEngine\RuleEngine::run(Vaanijya\LineItemPriceRuleEngine\LineItem $lineItem);
Configuration
{ "rulesProvider":"MyPackage\\MyRulesProvider" }
MyPackage\\MyRulesProvider
is expected to implement Vaanijya\LineItemPriceRuleEngine\RulesProvider
Interface