sunfoxcz/price-calculator

Library for easier price calculation using VAT and discount.

v0.4.0 2018-03-14 18:39 UTC

README

Build Status Scrutinizer Code Quality

Library for easier price calculation using VAT and discount.

Installation

composer require sunfoxcz/price-calculator:@dev

Usage

use Sunfox\PriceCalculator;

$result = (new PriceCalculator\PriceCalculator)
	->setBasePrice(1983.48)
	->setDiscount(10)
	->setVatRate(21)
	->calculate();