sclinternet / currency
Library of classes for dealing with currency
dev-master
2014-01-14 16:06 UTC
Requires
- php: >=5.3
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: dev-master
- phpmd/phpmd: 1.4.0
- phpspec/phpspec: 2.0.*@dev
- satooshi/php-coveralls: dev-master
- squizlabs/php_codesniffer: 1.*
This package is not auto-updated.
Last update: 2024-11-05 01:36:38 UTC
README
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);