adranetwork / currency-helper
Helps with parsing decimal currencies
v1.0.1
2022-09-03 15:31 UTC
Requires
- php: ^8.1
- illuminate/support: ^9.0
- prinsfrank/standards: ^1.3
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.12
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.0
README
Helps parsing amount depending of the currency type (decimal, non-decimals)
Installation
You can install the package via composer:
composer require adranetwork/currency-helper
Examples
Usable methods can be found in Adranetwork\CurrencyHelper\CurrencyHelper.php
CurrencyHelper::isNonDecimal(String | ISO4217_Alpha_3)
CurrencyHelper::setCurrency(String | ISO4217_Alpha_3)
->setAmount(Int)
->getHumanReadableAmount()
CurrencyHelper::of(String | ISO4217_Alpha_3, Int)->getHumanReadableAmount()
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@auclair.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.