kiyatilahun/ethiocurrencyconverter

This is my package ethiocurrencyconverter

dev-main 2025-05-12 15:08 UTC

This package is auto-updated.

Last update: 2025-06-16 16:21:38 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require kiyatilahun/ethiocurrencyconverter

Usage

To convert From one currency to another

ConvertCurrency::convertAmount($amount, $fromcurrency, $tocurrency);
ConvertCurrency::convertAmount(100, 'usd', 'etb');

To get all currency symbols

ConvertCurrency::getAllCurrenciesSymbol();

To get all currency symbols

ConvertCurrency::getAllCurrenciesSymbol();

To get the exchange rate between two currencies

ConvertCurrency::getExchangeRate($fromcurrency, $tocurrency);
ConvertCurrency::getExchangeRate('usd', 'etb');

To get the exchange rate from Ethiopian Birr (ETB) to another currency

ConvertCurrency::getBirrExchangeRate($tocurrency);
ConvertCurrency::getBirrExchangeRate('usd');

Credits

License

The MIT License (MIT). Please see License File for more information.