Code Monkey home page Code Monkey logo

iso-currencies's People

Contributors

anton-siardziuk avatar chris53897 avatar frederikbosch avatar gmponos avatar michaelgooden avatar nightio avatar pascal-hofmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iso-currencies's Issues

Export to Yaml

Would you be interested in a MR that will implement the export of the Iso Currencies to a Yaml file using the symfony component?

Add list of currencies that includes historical currencies

in Belarus we recently changed BYR to BYN, and imagine we have a data in database in BYR currencies and BYN currencies. And after I upgrade the library to the newest version I will no longer be able to work with old data, because Money\Money doesn't know about BYR anymore, which is wrong, as currency is there forever (as BYB - another ancient Belarus currency).

I am happy to prepare PR at some point, if maintainers say yes it makes sense to add those historical data.

Better filtering

I have seen a few anomalies in the currency data created by this script.

Problem

Possible Solutions

  • Do not process entries from the source without a valid currency code. This solves the first problem.
  • Do not include country data. As the current implementations in \Money\Currencies\ISOCurrencies does not use country data, this is an easy option. Alternatively;
  • Store country data separately. (Can a use case be made for it?)

Bump symfony/yaml version support

I get composer dependency errors since I'm using symfony 4.3 components. Would you be able to bump up the dependency version to support symfony/yaml ^4.3 ?

Easy way to access ISO Codes and currency names

On the app I am currently working we need to show a list of ISO codes and currency names. Since we are pulling in this package (through the use of moneyphp/money) and it already contains al data we need, it would be nice to expose it.

Question about Yemenies YER cent amount

In the ISO, YER has cents like USD, EUR ..etc.
https://github.com/moneyphp/iso-currencies/blob/d66effc1c28c6868f7d782dcc6ba965415ed68e8/resources/current.yaml#L884C8-L884C8

But it is not being formatted like them!
for example (USD) :

    $money = Money::USD(850);
    $currencies = new ISOCurrencies();

    $numberFormatter = new \NumberFormatter('en_USA', \NumberFormatter::CURRENCY);
    $moneyFormatter = new IntlMoneyFormatter($numberFormatter, $currencies);

    echo $moneyFormatter->format($money); // outputs $8.50 correct .

when it comes to YER :

    $money = Money::YER(850);
    $currencies = new ISOCurrencies();

    $numberFormatter = new \NumberFormatter('en_YER', \NumberFormatter::CURRENCY);
    $moneyFormatter = new IntlMoneyFormatter($numberFormatter, $currencies);

    echo $moneyFormatter->format($money); // outputs YER 8 not correct !! it is supposed to be YER 8.50

could anyone tell me what I am doing wrong ๐Ÿค”?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.