Skip to content

AliDeV7/Phone.Number.Method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phone Number Methods

About

This library provides all required functions for Cell phone numbers to check if phone numbers are correct or not. And returns the Correct phone number with the country code to save it in the database.

Features

  • Check patterns of the input phone number. (e.x) +98 937--* is correct.
  • Check country code of phone number. All Countries code as ISO (2-Digit)
  • Convert Persian And Arabic Digits to English Digits.
  • Discover name of country from phone number.

Some new features will add to this package SOON!

Example

After add Package to your project, Call this method to get correct phone number for you database:

var result = PhoneNumberMethod.GetCorrectPhoneNumber("YOUR PHONENUMER");
if (result.IsSuccess)
{
  // You can Check this Outputs
              
  // result.CorrectPhoneNumber
  // result.Country.Name
  // result.Country.ISO
  // result.Country.Code
}
else
{
   // Check result.Message 
}

About

Phone Number All Methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages