pekkis / currency-converter
Currency conversion
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/pekkis/currency-converter
Requires
- php: >=5.5.0
- mathiasverraes/money: ^1.2
- nategood/httpful: ^0.2.20
- tedivm/stash: ^0.13.1
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2025-09-28 00:23:58 UTC
README
A library for converting between currencies
Use case
Didn't find a good library (utilizing money class / reliable math) for currency conversion. Needed one. Made one.
Quickstart
<?php $converter = new CurrencyConverter( new FixerIoRateProvider() ); $money = new Money(2500, new Currency('EUR')); $sek = $converter->convert($money, 'SEK'); ## There's more Caching and different providers and such. Read code. Kood kood. Pull requests are welcome.