PHP Classes


Recommend this page to a friend!
  Classes of Sergii Pryz   PHP Price Calculator   Download  
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP Price Calculator
Calculate prices using arbitrary precision math
Author: By
Last change:
Date: 9 years ago
Size: 779 bytes


Class file image Download
PriceCalculator ============== Introduction ------------ Library helps calculate products sales price components such as net, gross, vat with using BCMath ( for all arithmetics operations. Moreover PriceCalculator offers several algorithms to build price net: * Fixed price over purchase price * Fixed percent over purchase price * Manually set net without any margin Additionally it is possible extend library by adding own net price strategy. ### The areas of usage * Calculation product sales price * Form price that's includes several fees like delivery, insurance etc. * Build price that vary from region * Simply calculate VAT, gross, net ### Examples Example can be found here: `/Example.php`