Many software projects deal with the lists of countries and currencies. Some of the most common tasks include country an currency dropdowns, country flags next to the IP, or pre-filling country codes in phone numbers.
All of that information is of course standardized and you often just need a library or two to provide and use it. And there are many of those. We’ve been mainly using these two:
Today, however, I came across a better option – antonioribeiro/countries, which is a collection of country and currency information for Laravel PHP framework. Laravel is not required though. This library provides way more information and in a much more flexible way. It includes:
- 266 countries (with more codes, common names, official names, and more)
- 256 currencies
- 1,570 flags
- 248 geometry maps
- 248 topology maps
- 4,526 states
- 7,376 cities
- and a lot more!