Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openclerk/fiat Build Status

A library for describing fiat currencies, used by Openclerk and live on CryptFolio.

This extends on the abstract currency definitions provided by openclerk/currencies.

Because fiat currencies are not digitally connected, we can't do interesting things with them like we can with cryptocurrencies; this component only describes fiat currencies with their three-character codes.

Installing

Include openclerk/fiat as a requirement in your project composer.json, and run composer update to install it into your project:

{
  "require": {
    "openclerk/fiat": "dev-master"
  }
}

Using

Get the name for a given currency:

$currency = new \Fiat\PolishZloty();
echo $currency->getName();   // returns "Polish złoty"
echo $currency->getURL();    // returns "http://en.wikipedia.org/wiki/Polish_z%C5%82oty"

Donate

Donations are appreciated.

Contributing

Pull requests that contribute new currencies are welcome.

TODO

  1. Should fiat currencies have assets?
  2. Generate README list of currencies/services automatically
  3. Link to live APIs on CryptFolio
  4. CI build server and link to test results

About

Definitions and implementations of fiat currencies in Openclerk

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages