PHP Classes
elePHPant
Icontem

File: README.md

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

Contents

Class file image Download
PriceCalculator
==============

Introduction
------------
Library helps calculate products sales price components such as net, gross, vat with 
using BCMath (http://www.php.net/manual/en/book.bc.php) 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`