Hacker GitHub

← All repos

google/libphonenumber

View on GitHub ↗ ★ 18,335 C++

Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.

44 mentions on Hacker News by 43 people: 18 stories, 26 comments · first 2014-12-15 · latest 2025-02-17

Mentions per year 44 mentions · busiest year 2023 (9)
20082026
  1. …businesses) allow multiple inbound calls to or outbound calls from the same phone number. ---- ¹ https://github.com/google/libphonenumber/blob/master/FALSEHO...
  2. Link to the Falsehoods article, it's a good read: https://github.com/google/libphonenumber/blob/master/FALSEHO...
  3. …did originally, about it being text as opposed to a number field, see points 18, 19, 23, and 25 on https://github.com/google/libphonenumber/blob/master/FALSEHO... The field on the form is indeed of `type=tel`, which Mozilla helpfully…
  4. …invariants is actually quite high. See Falsehoods Programmers Believe About Phone Numbers [0]. [0] https://github.com/google/libphonenumber/blob/master/FALSEHO...
  5. …not even going to consider it. * the actual number database has been updated 5x so far this year: https://github.com/google/libphonenumber/commits/master/meta...
    comment by AdamJacobMuller · 2023-02-28 · in How SMS fraud works and how to guard against it
  6. Yeah, but you can probably use https://github.com/google/libphonenumber for that.
  7. https://github.com/google/libphonenumber/blob/master/FALSEHO... > 1. Some people do not own phones, or do not wish to provide you with their telephone number when asked. Do not require a user to provide a phone number unless it is…
  8. …do a first pass through libphonenumber metadata[1], which was pretty reasonable at my last job. [1] https://github.com/google/libphonenumber/tree/master/metadat...
    comment by toast0 · 2023-01-05 · in Twilio’s toll fraud problem
  9. …like Hubspot. It is by no means complete, so please share anything you believe is missing. [1] https://github.com/google/libphonenumber/blob/master/FALSEHO... [2] https://beesbuzz.biz/code/439-Falsehoods-programmers-believe...
  10. Identifying something as a phone number is very difficult. https://github.com/google/libphonenumber/blob/master/FALSEHO...
  11. …all phone numbers are exactly 10 digits, American-style, even if there is a country code dropdown. https://github.com/google/libphonenumber/blob/master/FALSEHO...
  12. …1[2-8]| [2-7]| 8[1-79]| 9[145] </leadingDigits> <format>$1 $2 $3 $4</format> </numberFormat> [0]: https://github.com/google/libphonenumber [1]: https://github.com/google/libphonenumber/blob/master/resourc...
    comment by Kwpolska · 2022-03-25 · in VoWiFi
  13. …is essential, and whenever possible try to provide a fallback to accommodate these users. Source: https://github.com/google/libphonenumber/blob/master/FALSEHO...
    comment by kagitac · 2022-02-11 · in Phone number has been used too many times
  14. …ready to use implementations in various languages (there also exist ports for other languages too): https://github.com/google/libphonenumber/
    comment by Dunedan · 2021-08-29 · in The 74,000 numbers of Barclays Bank
  15. …again, 255 may not be enough. https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-... https://github.com/google/libphonenumber/blob/master/FALSEHO... https://www.mjt.me.uk/posts/falsehoods-programmers-believe-a...
    comment by Akronymus · 2021-08-04 · in Why you should learn SQL
  16. …[6] https://pypi.org/project/phonenumbers/ [7] which is a python port of Google's libphonenumber: https://github.com/google/libphonenumber [8] https://linux.die.net/man/1/iconv [9] https://linux.die.net/man/1/enca
  17. I found the list of falsehoods about phone numbers ( https://github.com/google/libphonenumber/blob/master/FALSEHO... ) really enlightening because it gave a short rationale or example for each point. I think that's way more helpful and…
    comment by koala_man · 2019-05-30 · in Falsehoods Programmers Believe About Search
  18. I'm reminded of the following which was posted to HN a while back. https://github.com/googlei18n/libphonenumber/blob/master/FAL...
  19. I don't have direct experience but libphonenumber looks pretty comprehensive: https://github.com/googlei18n/libphonenumber
  20. Falsehoods Programmers Believe About Phone Numbers https://github.com/googlei18n/libphonenumber/blob/master/FAL...
  21. Number 4 on the falshoods programmers believe about phone numbers: https://github.com/googlei18n/libphonenumber/blob/master/FAL...
  22. …the names and platforms are similar enough I mistook this title for a C port at first glance. [1] https://github.com/googlei18n/libphonenumber
  23. Anyone knows if anything similar exists for telephone numbers? Edit: Found this two minutes later: https://github.com/googlei18n/libphonenumber , seems to be an official Google product and Apache licensed.
  24. Am I missing something or this is just a REST front-end for Google´s libphonenumber[1] ? [1] https://github.com/googlei18n/libphonenumber
    comment by fasteo · 2015-03-31 · in Lookup by Twilio
  25. …libphonenumber, which does local formatting[2] [1] https://github.com/stripe/jquery.payment [2] https://github.com/googlei18n/libphonenumber
    comment by sandstrom · 2015-03-31 · in Lookup by Twilio
  26. …validation libraries. Just use Google's libphonenumber[0]. There's an iOS port of it [1]. [0] https://github.com/googlei18n/libphonenumber [1] https://github.com/iziz/libPhoneNumber-iOS