2017 © Pedro Peláez
 

library product-price-calculator

A simple package to assist with calculating product prices

image

cysha/product-price-calculator

A simple package to assist with calculating product prices

  • Sunday, May 21, 2017
  • by Cysha
  • Repository
  • 3 Watchers
  • 0 Stars
  • 73 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Product Price Calculator

PHP 5.6+ library to make working with products and price calculation, easier, and fun!, (*1)

``` php <?php, (*2)

use Model\Factory\MoneyFactory; use Model\Percentage; use Product\Product; use Product\ProductPriceCalculator; use Tax\TaxCollection; use Tax\TaxRate;, (*3)

$calculator = new ProductPriceCalculator(TaxCollection::make([ TaxRate::fromPercentage(20) ]));, (*4)

$product = Product::create( 'Item Name', MoneyFactory::create(50, 'GBP'), Percentage::fromDecimal(0.5) );, (*5)

$calculatedAmount = $calculator->calculatePriceFromProduct($product);, (*6)



## Install Via Composer ``` bash $ composer require cysha/product-price-calculator

Features

- Todo 

Documentation

- Todo 

Testing

We try to follow BDD and TDD, as such we use both phpspec and phpunit to test this library., (*7)

bash $ composer test, (*8)

Contributing

- Todo 

License

The MIT License (MIT). Please see License File for more information., (*9)

Acknowledgements

- Todo 

The Versions

21/05 2017

dev-master

9999999-dev

A simple package to assist with calculating product prices

  Sources   Download

MIT

The Requires

 

The Development Requires

21/05 2017

0.1.1

0.1.1.0

A simple package to assist with calculating product prices

  Sources   Download

MIT

The Requires

 

The Development Requires

21/05 2017

0.1.2

0.1.2.0

A simple package to assist with calculating product prices

  Sources   Download

MIT

The Requires

 

The Development Requires