IsValid is a library for validating values against different specifications, which includes things like mobile phone numbers from various locales, credit card numbers, IP addresses etc.
Project link: https://github.com/tocsoft/IsValid