Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"doctrine/dbal": "^3.10.2",
"egulias/email-validator": "^4.0.4",
"fusonic/opengraph": "^3.0.0",
"giggsey/libphonenumber-for-php-lite": "^9.0.9",
"giggsey/libphonenumber-for-php-lite": "^9.0.17",
"guzzlehttp/guzzle": "^7.9.3",
"icewind/searchdav": "^3.2.0",
"icewind/smb": "^3.7",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -927,17 +927,17 @@
},
{
"name": "giggsey/libphonenumber-for-php-lite",
"version": "9.0.9",
"version_normalized": "9.0.9.0",
"version": "9.0.17",
"version_normalized": "9.0.17.0",
"source": {
"type": "git",
"url": "https://github.com/giggsey/libphonenumber-for-php-lite.git",
"reference": "d7ae8dd1186b54ce1451aec437346dd772321492"
"reference": "430a602c6e5a03932b732226daf64aeeab5c6c65"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/d7ae8dd1186b54ce1451aec437346dd772321492",
"reference": "d7ae8dd1186b54ce1451aec437346dd772321492",
"url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/430a602c6e5a03932b732226daf64aeeab5c6c65",
"reference": "430a602c6e5a03932b732226daf64aeeab5c6c65",
"shasum": ""
},
"require": {
Expand All @@ -950,7 +950,7 @@
"require-dev": {
"ext-dom": "*",
"friendsofphp/php-cs-fixer": "^3.71",
"infection/infection": "^0.28.0",
"infection/infection": "^0.29|^0.31.0",
"nette/php-generator": "^4.1",
"php-coveralls/php-coveralls": "^2.7",
"phpstan/extension-installer": "^1.4.3",
Expand All @@ -966,7 +966,7 @@
"suggest": {
"giggsey/libphonenumber-for-php": "Use libphonenumber-for-php for geocoding, carriers, timezones and matching"
},
"time": "2025-07-08T08:38:23+00:00",
"time": "2025-10-24T07:09:56+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down
6 changes: 3 additions & 3 deletions composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
'dev_requirement' => false,
),
'giggsey/libphonenumber-for-php-lite' => array(
'pretty_version' => '9.0.9',
'version' => '9.0.9.0',
'reference' => 'd7ae8dd1186b54ce1451aec437346dd772321492',
'pretty_version' => '9.0.17',
'version' => '9.0.17.0',
'reference' => '430a602c6e5a03932b732226daf64aeeab5c6c65',
'type' => 'library',
'install_path' => __DIR__ . '/../giggsey/libphonenumber-for-php-lite',
'aliases' => array(),
Expand Down
2 changes: 1 addition & 1 deletion giggsey/libphonenumber-for-php-lite/METADATA-VERSION.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
* For more information, look at the phing tasks in build.xml
* @internal
*/
return 'v9.0.9';
return 'v9.0.17';
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class PhoneNumberUtil
protected const UNWANTED_END_CHAR_PATTERN = '[^' . self::DIGITS . self::VALID_ALPHA . '#]+$';
protected const DIALLABLE_CHAR_MAPPINGS = self::ASCII_DIGIT_MAPPINGS
+ [self::PLUS_SIGN => self::PLUS_SIGN]
+ ['*' => '*', '#' => '#'];
+ ['*' => '*', '#' => '#'];

protected static ?PhoneNumberUtil $instance;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct()
->setNationalNumberPattern('1(?:[0-79]\d{7}(?:\d(?:\d{2})?)?|8[0-24-9]\d{7})|[2-478]\d{8}|1\d{4,7}')
->setPossibleLength([5, 6, 7, 8, 9, 10, 12]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('4(?:79[01]|83[0-389]|94[0-478])\d{5}|4(?:[0-36]\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\d{6}')
->setNationalNumberPattern('4(?:79[01]|83[0-36-9])\d{5}|4(?:[0-36]\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\d{6}')
->setExampleNumber('412345678')
->setPossibleLength([9]);
$this->premiumRate = (new PhoneNumberDesc())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class PhoneNumberMetadata_BT extends PhoneMetadata
public function __construct()
{
$this->generalDesc = (new PhoneNumberDesc())
->setNationalNumberPattern('[17]\d{7}|[2-8]\d{6}')
->setNationalNumberPattern('[178]\d{7}|[2-8]\d{6}')
->setPossibleLengthLocalOnly([6])
->setPossibleLength([7, 8]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('(?:1[67]|77)\d{6}')
->setNationalNumberPattern('(?:1[67]|[78]7)\d{6}')
->setExampleNumber('17123456')
->setPossibleLength([8]);
$this->premiumRate = PhoneNumberDesc::empty();
Expand All @@ -50,12 +50,12 @@ public function __construct()
(new NumberFormat())
->setPattern('(\d)(\d{3})(\d{3})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['[2-68]|7[246]'])
->setLeadingDigitsPattern(['[2-6]|7[246]|8[2-4]'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{2})(\d{2})(\d{2})(\d{2})')
->setFormat('$1 $2 $3 $4')
->setLeadingDigitsPattern(['1[67]|7'])
->setLeadingDigitsPattern(['1[67]|[78]'])
->setNationalPrefixOptionalWhenFormatting(false),
];
$this->tollFree = PhoneNumberDesc::empty();
Expand All @@ -70,12 +70,12 @@ public function __construct()
(new NumberFormat())
->setPattern('(\d)(\d{3})(\d{3})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['[2-68]|7[246]'])
->setLeadingDigitsPattern(['[2-6]|7[246]|8[2-4]'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{2})(\d{2})(\d{2})(\d{2})')
->setFormat('$1 $2 $3 $4')
->setLeadingDigitsPattern(['1[67]|7'])
->setLeadingDigitsPattern(['1[67]|[78]'])
->setNationalPrefixOptionalWhenFormatting(false),
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
->setNationalNumberPattern('1(?:[0-79]\d{8}(?:\d{2})?|8[0-24-9]\d{7})|[148]\d{8}|1\d{5,7}')
->setPossibleLength([6, 7, 8, 9, 10, 12]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('4(?:79[01]|83[0-389]|94[0-478])\d{5}|4(?:[0-36]\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\d{6}')
->setNationalNumberPattern('4(?:79[01]|83[0-36-9])\d{5}|4(?:[0-36]\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\d{6}')
->setExampleNumber('412345678')
->setPossibleLength([9]);
$this->premiumRate = (new PhoneNumberDesc())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,20 @@ class PhoneNumberMetadata_CL extends PhoneMetadata

protected ?string $internationalPrefix = '(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0';
protected bool $mobileNumberPortableRegion = true;
protected bool $sameMobileAndFixedLinePattern = true;

public function __construct()
{
$this->generalDesc = (new PhoneNumberDesc())
->setNationalNumberPattern('12300\d{6}|6\d{9,10}|[2-9]\d{8}')
->setPossibleLength([9, 10, 11]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('2(?:1982[0-6]|3314[05-9])\d{3}|(?:2(?:1(?:160|962)|3(?:2\d\d|3(?:[03467]\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]\d\d|9(?:3(?:[0-57-9]\d\d|6(?:0[02-9]|[1-9]\d))|6(?:[0-8]\d\d|9(?:[02-79]\d|1[05-9]))|7[1-9]\d\d|9(?:[03-9]\d\d|1(?:[0235-9]\d|4[0-24-9])|2(?:[0-79]\d|8[0-46-9]))))\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\d{7}')
->setNationalNumberPattern('2(?:1982[0-6]|3314[05-9])\d{3}|(?:2(?:1(?:160|962)|2\d{3}|3(?:(?:2\d|50)\d|3(?:[03467]\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389]|9[0-8])|600)|646[59])|(?:(?:3[2-5]|[47][1-35]|5[1-3578]|6[13-57])\d|8(?:0[1-8]|[1-9]\d))\d\d|9(?:(?:10[01]|(?:[2458]\d|7[1-9])\d)\d|3(?:[0-57-9]\d\d|6(?:0[02-9]|[1-9]\d))|6(?:[0-8]\d\d|9(?:[02-79]\d|1[05-9]))|9(?:[03-9]\d\d|1(?:[0235-9]\d|4[0-24-9])|2(?:[0-79]\d|8[0-46-9]))))\d{4}')
->setExampleNumber('221234567')
->setPossibleLength([9]);
$this->premiumRate = PhoneNumberDesc::empty();
$this->fixedLine = (new PhoneNumberDesc())
->setNationalNumberPattern('2(?:1982[0-6]|3314[05-9])\d{3}|(?:2(?:1(?:160|962)|3(?:2\d\d|3(?:[03467]\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]\d\d|9(?:3(?:[0-57-9]\d\d|6(?:0[02-9]|[1-9]\d))|6(?:[0-8]\d\d|9(?:[02-79]\d|1[05-9]))|7[1-9]\d\d|9(?:[03-9]\d\d|1(?:[0235-9]\d|4[0-24-9])|2(?:[0-79]\d|8[0-46-9]))))\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\d{7}')
->setExampleNumber('221234567')
->setNationalNumberPattern('2(?:1982[0-6]|3314[05-9])\d{3}|(?:2(?:1(?:160|962)|2\d{3}|3(?:(?:2\d|50)\d|3(?:[03467]\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389]|9[0-8])|600)|646[59])|(?:(?:3[2-5]|[47][1-35]|5[1-3578])\d|6(?:00|[13-57]\d)|8(?:0[1-9]|[1-9]\d))\d\d|9(?:(?:10[01]|(?:[2458]\d|7[1-9])\d)\d|3(?:[0-57-9]\d\d|6(?:0[02-9]|[1-9]\d))|6(?:[0-8]\d\d|9(?:[02-79]\d|1[05-9]))|9(?:[03-9]\d\d|1(?:[0235-9]\d|4[0-24-9])|2(?:[0-79]\d|8[0-46-9]))))\d{4}')
->setExampleNumber('600123456')
->setPossibleLength([9]);
$this->numberFormat = [
(new NumberFormat())
Expand All @@ -53,6 +52,11 @@ public function __construct()
->setLeadingDigitsPattern(['219', '2196'])
->setNationalPrefixFormattingRule('($1)')
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{3})(\d{3})(\d{3})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['60|809'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{2})(\d{3})(\d{4})')
->setFormat('$1 $2 $3')
Expand All @@ -67,12 +71,12 @@ public function __construct()
(new NumberFormat())
->setPattern('(\d)(\d{4})(\d{4})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['9[2-9]'])
->setLeadingDigitsPattern(['9(?:10|[2-9])'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{2})(\d{3})(\d{4})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])'])
->setLeadingDigitsPattern(['3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])'])
->setNationalPrefixFormattingRule('($1)')
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
Expand Down Expand Up @@ -117,6 +121,11 @@ public function __construct()
->setLeadingDigitsPattern(['219', '2196'])
->setNationalPrefixFormattingRule('($1)')
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{3})(\d{3})(\d{3})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['60|809'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{2})(\d{3})(\d{4})')
->setFormat('$1 $2 $3')
Expand All @@ -131,12 +140,12 @@ public function __construct()
(new NumberFormat())
->setPattern('(\d)(\d{4})(\d{4})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['9[2-9]'])
->setLeadingDigitsPattern(['9(?:10|[2-9])'])
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
->setPattern('(\d{2})(\d{3})(\d{4})')
->setFormat('$1 $2 $3')
->setLeadingDigitsPattern(['3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])'])
->setLeadingDigitsPattern(['3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])'])
->setNationalPrefixFormattingRule('($1)')
->setNationalPrefixOptionalWhenFormatting(false),
(new NumberFormat())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
->setNationalNumberPattern('1(?:[0-79]\d{8}(?:\d{2})?|8[0-24-9]\d{7})|[148]\d{8}|1\d{5,7}')
->setPossibleLength([6, 7, 8, 9, 10, 12]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('4(?:79[01]|83[0-389]|94[0-478])\d{5}|4(?:[0-36]\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\d{6}')
->setNationalNumberPattern('4(?:79[01]|83[0-36-9])\d{5}|4(?:[0-36]\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\d{6}')
->setExampleNumber('412345678')
->setPossibleLength([9]);
$this->premiumRate = (new PhoneNumberDesc())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct()
->setNationalNumberPattern('(?:[2-578]\d|60)\d{7}|9\d{8,11}')
->setPossibleLength([9, 10, 11, 12]);
$this->mobile = (new PhoneNumberDesc())
->setNationalNumberPattern('(?:60[1-8]\d|7(?:0(?:[2-5]\d|60)|19[0-4]|[2379]\d\d))\d{5}')
->setNationalNumberPattern('7(?:060\d|19(?:[0-5]\d|6[0-6]))\d{4}|(?:60[1-8]|7(?:0[2-5]|[2379]\d))\d{6}')
->setExampleNumber('601123456')
->setPossibleLength([9]);
$this->premiumRate = (new PhoneNumberDesc())
Expand Down
Loading