mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-19 22:06:16 +00:00
* Add locale and libphonenumber libraries. * Update country code information Updated existing country codes, fixed incorrect NANP codes for member countries (as well as several UK based ones). Also added in Country Name to ISO country code mapping array for use with libphonenumber. * Convert phone number formatting to use libphonenumber libphonenumber parses phone number more consistantly than the old regex's that mismatched number on a regular basis.
32 lines
551 B
PHP
32 lines
551 B
PHP
<?php
|
|
|
|
namespace libphonenumber;
|
|
|
|
use libphonenumber\Leniency\Possible;
|
|
use libphonenumber\Leniency\StrictGrouping;
|
|
use libphonenumber\Leniency\Valid;
|
|
use libphonenumber\Leniency\ExactGrouping;
|
|
|
|
class Leniency
|
|
{
|
|
public static function POSSIBLE()
|
|
{
|
|
return new Possible;
|
|
}
|
|
|
|
public static function VALID()
|
|
{
|
|
return new Valid;
|
|
}
|
|
|
|
public static function STRICT_GROUPING()
|
|
{
|
|
return new StrictGrouping;
|
|
}
|
|
|
|
public static function EXACT_GROUPING()
|
|
{
|
|
return new ExactGrouping;
|
|
}
|
|
}
|