adranetwork/currency-helper

Helps with parsing decimal currencies

v1.0.1 2022-09-03 15:31 UTC

This package is auto-updated.

Last update: 2024-04-30 00:28:40 UTC


README

Latest Version on Packagist Total Downloads

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.