Statistics
1327
2
0
217d
Badges
Dependencies

Price calculator library

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();
  • v0.3.0 Released version 0.3.0

    • Fixed compatibility with Nette 2.4
    • Dropped php 5.4 and 5.5 support
  • v0.2.0 Released version 0.2.0

    • Added Extension for Nette framework
    • Improved coding style
    • Renamed reduction to discount [BC Break]
    • Added separated discount class implementations [BC Break]
  • v0.1.0 Released version 0.1.0

    First release.

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com