Skip to content

Currency converter package helps you to easily convert any amount from specific currency to another one.

License

Notifications You must be signed in to change notification settings

omartawba1/currency_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Currency converter package helps you to easily convert any amount from specific currency to another one.

Installation

Using Composer :

composer install

Or you can do

composer require tawba/currency-converter

If you don't have composer, you can get it from Composer

Run the application

php index.php list
php index.php convert

Usage

use Tawba\CurrencyConverter\ConverterService;

$from_currency = "USD";
$to_currency   = "EGP";
$amount        = 1000;

$converter = new ConverterService(); // You can pass "google" or "yahoo" as a service API
echo $converter->convert($from_currency, $to_currency, $amount);

You can test it by changing $from_currency, $to_currency, and $amount that exist inside index.php file

Notice: This package uses Google or Yahoo currency converter API.

About

Currency converter package helps you to easily convert any amount from specific currency to another one.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages