sclinternet/currency

Library of classes for dealing with currency

dev-master 2014-01-14 16:06 UTC

This package is not auto-updated.

Last update: 2024-11-05 01:36:38 UTC


README

Build Status Scrutinizer Quality Score Code Coverage

Installation

Currency

Money

TaxedPrice

Comparison

Calculations

Factories

CurrencyFactory

use SCL\Currency\CurrencyFactory;

$factory = CurrencyFactory::createDefaultInstance();

$sterling = $factory->create('GBP');

MoneyFactory

use SCL\Currency\CurrencyFactory;
use SCL\Currency\MoneyFactory;

$factory = MoneyFactory::createDefaultInstance();

$factory->setDefaultCurrency(CurrencyFactory::createDefaultInstance()->create('GBP'));

$money = $factory->createFromValue(1.00);