A library to parse phone numbers in e164 format for getting useful information from them.


This was created when I was working on a company that needed information about numbers that weren't provided by Google's libphonenumber. At the time we needed something to parse numbers and identify from which state it was. It worked for our use case and we needed it to work only with brazilian numbers. I decided to do something that covered international numbers due to some reasons. First, the source of information we were getting those numbers were already formatted in e164 and I thought at the time that something like that could be useful for the community.


It's kinda maintained. I usually don't add more countries nor regions and rely in the community to updated the most of the countries regexes. I plan to work on the macros to get some speed and make it compile fast, clean up redundant code and stuff like that.