iso4217 icon indicating copy to clipboard operation
iso4217 copied to clipboard

Using six-group.com as source for automatic updates

Open courtney-miles opened this issue 3 years ago • 3 comments

Would the package maintainers be interested in a PR that scripts the updating of the codes in this package?

The idea would be to use SIX Financial Information as the source.

SIX Financial Information AG is the official Maintenance Agency of these currency codes under ISO 4217 and as such the only recognized, authoritative source on currency code designations.

They offer and XML copy of all the code current codes at ~~https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list_one.xml~~ moved to: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml

In regards to #4, they also offer a list of historic denominations at ~~https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list_three.xml~~ moved to: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-three.xml

(I have taken an interest because this package lists ZWL as deprecated when it's otherwise still in the official list, including on Wikipedia -- so it seems less ambiguity is needed)

courtney-miles avatar Sep 13 '22 21:09 courtney-miles

Yes, though I can't quite say what I would like this to look like. But I am definitely open to scripted updating. If you can start with a PR with some very basic things, I can perhaps provide early feedback.

alcohol avatar Sep 14 '22 07:09 alcohol

I also am still not sure if I want to make this library more in line with how I setup https://github.com/thephpleague/iso3166 or not (I sometimes prefer the more "simple" approach I still have here).

alcohol avatar Sep 14 '22 07:09 alcohol

It would probably be best if the update script could dump the parsed xml contents into a generated file with php code (e.g. <?php return [...];) to allow for opcode caching.

alcohol avatar Mar 20 '23 07:03 alcohol