Skip to content
joan-ramirez-montillaPublic

About

Library to see the value of one currency compared to another

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency

Library to see the value of a currency in comparison with another, it accepts the change of all the currencies in the world.

Installation

Add joan-ramirez/currency as a require dependency in your composer.json file:

composer require joan-ramirez/currency

Usage

Create a currency instance

use JoanRamirez/Currency/Currency;

$currency = new Currency();

Get USD value converted to EUR change()->get() methods

$currency->change('USD', 'EUR')->get();

Get the value of $100 USD converted to EUR with the amount() method

$currency->change('USD', 'EUR')->amount(100)->get();

License

Currency is licensed under the MIT license.

About

Library to see the value of one currency compared to another

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages