1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-17 21:06:17 +00:00
Greg Ross 6e86c48486 Updated phone formatter (#241)
* 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.
2018-06-26 09:49:22 +02:00

16 lines
243 B
PHP

<?php
namespace libphonenumber;
/**
* Cost categories of short numbers
* @package libphonenumber
*/
class ShortNumberCost
{
const TOLL_FREE = 3;
const PREMIUM_RATE = 4;
const STANDARD_RATE = 30;
const UNKNOWN_COST = 10;
}