migrate therinaldos.com data
Build & Deploy to DigitalOcean Space / build (push) Failing after 2m38s

This commit is contained in:
2024-05-05 15:50:45 -04:00
commit ef1ff240d4
23182 changed files with 3801898 additions and 0 deletions
@@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
@@ -0,0 +1,34 @@
<?php
namespace libphonenumber;
/**
* Country code source from number
*/
class CountryCodeSource
{
/**
* The country_code is derived based on a phone number with a leading "+", e.g. the French
* number "+33 1 42 68 53 00".
*/
public const FROM_NUMBER_WITH_PLUS_SIGN = 0;
/**
* The country_code is derived based on a phone number with a leading IDD, e.g. the French
* number "011 33 1 42 68 53 00", as it is dialled from US.
*/
public const FROM_NUMBER_WITH_IDD = 1;
/**
* The country_code is derived based on a phone number without a leading "+", e.g. the French
* number "33 1 42 68 53 00" when defaultCountry is supplied as France.
*/
public const FROM_NUMBER_WITHOUT_PLUS_SIGN = 2;
/**
* The country_code is derived NOT based on the phone number itself, but from the defaultCountry
* parameter provided in the parsing function by the clients. This happens mostly for numbers
* written in the national format (without country code). For example, this would be set when
* parsing the French number "01 42 68 53 00", when defaultCountry is supplied as France.
*/
public const FROM_DEFAULT_COUNTRY = 3;
public const UNSPECIFIED = 4;
}
@@ -0,0 +1,920 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
namespace libphonenumber;
class CountryCodeToRegionCodeMap
{
// A mapping from a country code to the region codes which denote the
// country/region represented by that country code. In the case of multiple
// countries sharing a calling code, such as the NANPA countries, the one
// indicated with "isMainCountryForCode" in the metadata should be first.
public const COUNTRY_CODE_TO_REGION_CODE_MAP = [
1 =>
[
0 => 'US',
1 => 'AG',
2 => 'AI',
3 => 'AS',
4 => 'BB',
5 => 'BM',
6 => 'BS',
7 => 'CA',
8 => 'DM',
9 => 'DO',
10 => 'GD',
11 => 'GU',
12 => 'JM',
13 => 'KN',
14 => 'KY',
15 => 'LC',
16 => 'MP',
17 => 'MS',
18 => 'PR',
19 => 'SX',
20 => 'TC',
21 => 'TT',
22 => 'VC',
23 => 'VG',
24 => 'VI',
],
7 =>
[
0 => 'RU',
1 => 'KZ',
],
20 =>
[
0 => 'EG',
],
27 =>
[
0 => 'ZA',
],
30 =>
[
0 => 'GR',
],
31 =>
[
0 => 'NL',
],
32 =>
[
0 => 'BE',
],
33 =>
[
0 => 'FR',
],
34 =>
[
0 => 'ES',
],
36 =>
[
0 => 'HU',
],
39 =>
[
0 => 'IT',
1 => 'VA',
],
40 =>
[
0 => 'RO',
],
41 =>
[
0 => 'CH',
],
43 =>
[
0 => 'AT',
],
44 =>
[
0 => 'GB',
1 => 'GG',
2 => 'IM',
3 => 'JE',
],
45 =>
[
0 => 'DK',
],
46 =>
[
0 => 'SE',
],
47 =>
[
0 => 'NO',
1 => 'SJ',
],
48 =>
[
0 => 'PL',
],
49 =>
[
0 => 'DE',
],
51 =>
[
0 => 'PE',
],
52 =>
[
0 => 'MX',
],
53 =>
[
0 => 'CU',
],
54 =>
[
0 => 'AR',
],
55 =>
[
0 => 'BR',
],
56 =>
[
0 => 'CL',
],
57 =>
[
0 => 'CO',
],
58 =>
[
0 => 'VE',
],
60 =>
[
0 => 'MY',
],
61 =>
[
0 => 'AU',
1 => 'CC',
2 => 'CX',
],
62 =>
[
0 => 'ID',
],
63 =>
[
0 => 'PH',
],
64 =>
[
0 => 'NZ',
],
65 =>
[
0 => 'SG',
],
66 =>
[
0 => 'TH',
],
81 =>
[
0 => 'JP',
],
82 =>
[
0 => 'KR',
],
84 =>
[
0 => 'VN',
],
86 =>
[
0 => 'CN',
],
90 =>
[
0 => 'TR',
],
91 =>
[
0 => 'IN',
],
92 =>
[
0 => 'PK',
],
93 =>
[
0 => 'AF',
],
94 =>
[
0 => 'LK',
],
95 =>
[
0 => 'MM',
],
98 =>
[
0 => 'IR',
],
211 =>
[
0 => 'SS',
],
212 =>
[
0 => 'MA',
1 => 'EH',
],
213 =>
[
0 => 'DZ',
],
216 =>
[
0 => 'TN',
],
218 =>
[
0 => 'LY',
],
220 =>
[
0 => 'GM',
],
221 =>
[
0 => 'SN',
],
222 =>
[
0 => 'MR',
],
223 =>
[
0 => 'ML',
],
224 =>
[
0 => 'GN',
],
225 =>
[
0 => 'CI',
],
226 =>
[
0 => 'BF',
],
227 =>
[
0 => 'NE',
],
228 =>
[
0 => 'TG',
],
229 =>
[
0 => 'BJ',
],
230 =>
[
0 => 'MU',
],
231 =>
[
0 => 'LR',
],
232 =>
[
0 => 'SL',
],
233 =>
[
0 => 'GH',
],
234 =>
[
0 => 'NG',
],
235 =>
[
0 => 'TD',
],
236 =>
[
0 => 'CF',
],
237 =>
[
0 => 'CM',
],
238 =>
[
0 => 'CV',
],
239 =>
[
0 => 'ST',
],
240 =>
[
0 => 'GQ',
],
241 =>
[
0 => 'GA',
],
242 =>
[
0 => 'CG',
],
243 =>
[
0 => 'CD',
],
244 =>
[
0 => 'AO',
],
245 =>
[
0 => 'GW',
],
246 =>
[
0 => 'IO',
],
247 =>
[
0 => 'AC',
],
248 =>
[
0 => 'SC',
],
249 =>
[
0 => 'SD',
],
250 =>
[
0 => 'RW',
],
251 =>
[
0 => 'ET',
],
252 =>
[
0 => 'SO',
],
253 =>
[
0 => 'DJ',
],
254 =>
[
0 => 'KE',
],
255 =>
[
0 => 'TZ',
],
256 =>
[
0 => 'UG',
],
257 =>
[
0 => 'BI',
],
258 =>
[
0 => 'MZ',
],
260 =>
[
0 => 'ZM',
],
261 =>
[
0 => 'MG',
],
262 =>
[
0 => 'RE',
1 => 'YT',
],
263 =>
[
0 => 'ZW',
],
264 =>
[
0 => 'NA',
],
265 =>
[
0 => 'MW',
],
266 =>
[
0 => 'LS',
],
267 =>
[
0 => 'BW',
],
268 =>
[
0 => 'SZ',
],
269 =>
[
0 => 'KM',
],
290 =>
[
0 => 'SH',
1 => 'TA',
],
291 =>
[
0 => 'ER',
],
297 =>
[
0 => 'AW',
],
298 =>
[
0 => 'FO',
],
299 =>
[
0 => 'GL',
],
350 =>
[
0 => 'GI',
],
351 =>
[
0 => 'PT',
],
352 =>
[
0 => 'LU',
],
353 =>
[
0 => 'IE',
],
354 =>
[
0 => 'IS',
],
355 =>
[
0 => 'AL',
],
356 =>
[
0 => 'MT',
],
357 =>
[
0 => 'CY',
],
358 =>
[
0 => 'FI',
1 => 'AX',
],
359 =>
[
0 => 'BG',
],
370 =>
[
0 => 'LT',
],
371 =>
[
0 => 'LV',
],
372 =>
[
0 => 'EE',
],
373 =>
[
0 => 'MD',
],
374 =>
[
0 => 'AM',
],
375 =>
[
0 => 'BY',
],
376 =>
[
0 => 'AD',
],
377 =>
[
0 => 'MC',
],
378 =>
[
0 => 'SM',
],
380 =>
[
0 => 'UA',
],
381 =>
[
0 => 'RS',
],
382 =>
[
0 => 'ME',
],
383 =>
[
0 => 'XK',
],
385 =>
[
0 => 'HR',
],
386 =>
[
0 => 'SI',
],
387 =>
[
0 => 'BA',
],
389 =>
[
0 => 'MK',
],
420 =>
[
0 => 'CZ',
],
421 =>
[
0 => 'SK',
],
423 =>
[
0 => 'LI',
],
500 =>
[
0 => 'FK',
],
501 =>
[
0 => 'BZ',
],
502 =>
[
0 => 'GT',
],
503 =>
[
0 => 'SV',
],
504 =>
[
0 => 'HN',
],
505 =>
[
0 => 'NI',
],
506 =>
[
0 => 'CR',
],
507 =>
[
0 => 'PA',
],
508 =>
[
0 => 'PM',
],
509 =>
[
0 => 'HT',
],
590 =>
[
0 => 'GP',
1 => 'BL',
2 => 'MF',
],
591 =>
[
0 => 'BO',
],
592 =>
[
0 => 'GY',
],
593 =>
[
0 => 'EC',
],
594 =>
[
0 => 'GF',
],
595 =>
[
0 => 'PY',
],
596 =>
[
0 => 'MQ',
],
597 =>
[
0 => 'SR',
],
598 =>
[
0 => 'UY',
],
599 =>
[
0 => 'CW',
1 => 'BQ',
],
670 =>
[
0 => 'TL',
],
672 =>
[
0 => 'NF',
],
673 =>
[
0 => 'BN',
],
674 =>
[
0 => 'NR',
],
675 =>
[
0 => 'PG',
],
676 =>
[
0 => 'TO',
],
677 =>
[
0 => 'SB',
],
678 =>
[
0 => 'VU',
],
679 =>
[
0 => 'FJ',
],
680 =>
[
0 => 'PW',
],
681 =>
[
0 => 'WF',
],
682 =>
[
0 => 'CK',
],
683 =>
[
0 => 'NU',
],
685 =>
[
0 => 'WS',
],
686 =>
[
0 => 'KI',
],
687 =>
[
0 => 'NC',
],
688 =>
[
0 => 'TV',
],
689 =>
[
0 => 'PF',
],
690 =>
[
0 => 'TK',
],
691 =>
[
0 => 'FM',
],
692 =>
[
0 => 'MH',
],
800 =>
[
0 => '001',
],
808 =>
[
0 => '001',
],
850 =>
[
0 => 'KP',
],
852 =>
[
0 => 'HK',
],
853 =>
[
0 => 'MO',
],
855 =>
[
0 => 'KH',
],
856 =>
[
0 => 'LA',
],
870 =>
[
0 => '001',
],
878 =>
[
0 => '001',
],
880 =>
[
0 => 'BD',
],
881 =>
[
0 => '001',
],
882 =>
[
0 => '001',
],
883 =>
[
0 => '001',
],
886 =>
[
0 => 'TW',
],
888 =>
[
0 => '001',
],
960 =>
[
0 => 'MV',
],
961 =>
[
0 => 'LB',
],
962 =>
[
0 => 'JO',
],
963 =>
[
0 => 'SY',
],
964 =>
[
0 => 'IQ',
],
965 =>
[
0 => 'KW',
],
966 =>
[
0 => 'SA',
],
967 =>
[
0 => 'YE',
],
968 =>
[
0 => 'OM',
],
970 =>
[
0 => 'PS',
],
971 =>
[
0 => 'AE',
],
972 =>
[
0 => 'IL',
],
973 =>
[
0 => 'BH',
],
974 =>
[
0 => 'QA',
],
975 =>
[
0 => 'BT',
],
976 =>
[
0 => 'MN',
],
977 =>
[
0 => 'NP',
],
979 =>
[
0 => '001',
],
992 =>
[
0 => 'TJ',
],
993 =>
[
0 => 'TM',
],
994 =>
[
0 => 'AZ',
],
995 =>
[
0 => 'GE',
],
996 =>
[
0 => 'KG',
],
998 =>
[
0 => 'UZ',
],
];
}
@@ -0,0 +1,144 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
namespace libphonenumber;
class CountryCodeToRegionCodeMapForTesting
{
// A mapping from a country code to the region codes which denote the
// country/region represented by that country code. In the case of multiple
// countries sharing a calling code, such as the NANPA countries, the one
// indicated with "isMainCountryForCode" in the metadata should be first.
public const COUNTRY_CODE_TO_REGION_CODE_MAP_FOR_TESTING = [
1 =>
[
0 => 'US',
1 => 'BB',
2 => 'BS',
3 => 'CA',
],
7 =>
[
0 => 'RU',
],
33 =>
[
0 => 'FR',
],
39 =>
[
0 => 'IT',
],
44 =>
[
0 => 'GB',
1 => 'GG',
],
46 =>
[
0 => 'SE',
],
48 =>
[
0 => 'PL',
],
49 =>
[
0 => 'DE',
],
52 =>
[
0 => 'MX',
],
54 =>
[
0 => 'AR',
],
55 =>
[
0 => 'BR',
],
57 =>
[
0 => 'CO',
],
61 =>
[
0 => 'AU',
1 => 'CC',
2 => 'CX',
],
64 =>
[
0 => 'NZ',
],
65 =>
[
0 => 'SG',
],
81 =>
[
0 => 'JP',
],
82 =>
[
0 => 'KR',
],
86 =>
[
0 => 'CN',
],
244 =>
[
0 => 'AO',
],
262 =>
[
0 => 'RE',
1 => 'YT',
],
290 =>
[
0 => 'TA',
],
374 =>
[
0 => 'AM',
],
375 =>
[
0 => 'BY',
],
376 =>
[
0 => 'AD',
],
800 =>
[
0 => '001',
],
882 =>
[
0 => '001',
],
971 =>
[
0 => 'AE',
],
979 =>
[
0 => '001',
],
998 =>
[
0 => 'UZ',
],
];
}
@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
class DefaultMetadataLoader implements MetadataLoaderInterface
{
public function loadMetadata(string $metadataFileName): array
{
return include $metadataFileName;
}
}
@@ -0,0 +1,16 @@
<?php
namespace libphonenumber;
/**
* Types of phone number matches
* See detailed description beside the isNumberMatch() method
*/
class MatchType
{
public const NOT_A_NUMBER = 0;
public const NO_MATCH = 1;
public const SHORT_NSN_MATCH = 2;
public const NSN_MATCH = 3;
public const EXACT_MATCH = 4;
}
@@ -0,0 +1,156 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* Matcher for various regex matching
*
* Note that this is NOT the same as Google's java PhoneNumberMatcher class.
* This class is a minimal port of java's built-in matcher class, whereas PhoneNumberMatcher
* is designed to recognize phone numbers embedded in any text.
*
* @internal
*/
class Matcher
{
protected string $pattern;
protected string $subject = '';
/**
* @var array<array{string,int}>
*/
protected array $groups = [];
private int $searchIndex = 0;
/**
* @param string $pattern
* @param string $subject
*/
public function __construct(string $pattern, string $subject)
{
$this->pattern = str_replace('/', '\/', $pattern);
$this->subject = $subject;
}
/**
* @param string $type
* @param int $offset
* @return bool
*/
protected function doMatch(string $type = 'find', int $offset = 0): bool
{
$final_pattern = '(?:' . $this->pattern . ')';
switch ($type) {
case 'matches':
$final_pattern = '^' . $final_pattern . '$';
break;
case 'lookingAt':
$final_pattern = '^' . $final_pattern;
break;
case 'find':
default:
// no changes
break;
}
$final_pattern = '/' . $final_pattern . '/ui';
$search = mb_substr($this->subject, $offset);
$result = preg_match($final_pattern, $search, $groups, PREG_OFFSET_CAPTURE);
if ($result === 1) {
// Expand $groups into $this->groups, but being multi-byte aware
$positions = [];
foreach ($groups as $group) {
$positions[] = [
$group[0],
$offset + mb_strlen(substr($search, 0, $group[1])),
];
}
$this->groups = $positions;
}
return ($result === 1);
}
public function matches(): bool
{
return $this->doMatch('matches');
}
public function lookingAt(): bool
{
return $this->doMatch('lookingAt');
}
public function find(?int $offset = null): bool
{
if ($offset === null) {
$offset = $this->searchIndex;
}
// Increment search index for the next time we call this
$this->searchIndex++;
return $this->doMatch('find', $offset);
}
public function groupCount(): ?int
{
if (empty($this->groups)) {
return null;
}
return count($this->groups) - 1;
}
public function group(?int $group = null): ?string
{
if ($group === null) {
$group = 0;
}
return $this->groups[$group][0] ?? null;
}
public function end(?int $group = null): ?int
{
if ($group === null) {
$group = 0;
}
if (!isset($this->groups[$group])) {
return null;
}
return $this->groups[$group][1] + mb_strlen($this->groups[$group][0]);
}
public function start(int $group = 0): ?int
{
if (!isset($this->groups[$group])) {
return null;
}
return $this->groups[$group][1];
}
public function replaceFirst(string $replacement): string
{
return preg_replace('/' . $this->pattern . '/x', $replacement, $this->subject, 1);
}
public function replaceAll(string $replacement): string
{
return preg_replace('/' . $this->pattern . '/x', $replacement, $this->subject);
}
public function reset(string $input = ''): self
{
$this->subject = $input;
return $this;
}
}
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* Interface MatcherAPIInterface
*
* Internal phonenumber matching API used to isolate the underlying implementation of the
* matcher and allow different implementations to be swapped in easily.
*
* @package libphonenumber
* @internal
*/
interface MatcherAPIInterface
{
/**
* Returns whether the given national number (a string containing only decimal digits) matches
* the national number pattern defined in the given {@code PhoneNumberDesc} message.
*/
public function matchNationalNumber(string $number, PhoneNumberDesc $numberDesc, bool $allowPrefixMatch): bool;
}
@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* @interal
* @phpstan-import-type PhoneMetadataArray from PhoneMetadata
*/
interface MetadataLoaderInterface
{
/**
* @param string $metadataFileName File name (including path) of metadata to load.
* @return PhoneMetadataArray
*/
public function loadMetadata(string $metadataFileName): array;
}
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
interface MetadataSourceInterface
{
/**
* Gets phone metadata for a region.
* @param string $regionCode the region code.
* @return PhoneMetadata the phone metadata for that region, or null if there is none.
*/
public function getMetadataForRegion(string $regionCode): PhoneMetadata;
/**
* Gets phone metadata for a non-geographical region.
* @param int $countryCallingCode the country calling code.
* @return PhoneMetadata the phone metadata for that region, or null if there is none.
*/
public function getMetadataForNonGeographicalRegion(int $countryCallingCode): PhoneMetadata;
}
@@ -0,0 +1,92 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
class MultiFileMetadataSourceImpl implements MetadataSourceInterface
{
protected static string $metaDataFilePrefix = PhoneNumberUtil::META_DATA_FILE_PREFIX;
/**
* A mapping from a region code to the PhoneMetadata for that region.
* @var PhoneMetadata[]
*/
protected array $regionToMetadataMap = [];
/**
* A mapping from a country calling code for a non-geographical entity to the PhoneMetadata for
* that country calling code. Examples of the country calling codes include 800 (International
* Toll Free Service) and 808 (International Shared Cost Service).
* @var PhoneMetadata[]
*/
protected array $countryCodeToNonGeographicalMetadataMap = [];
/**
* The prefix of the metadata files from which region data is loaded.
*/
protected ?string $currentFilePrefix;
public function __construct(protected MetadataLoaderInterface $metadataLoader, ?string $currentFilePrefix = null)
{
if ($currentFilePrefix === null) {
$currentFilePrefix = static::$metaDataFilePrefix;
}
$this->currentFilePrefix = $currentFilePrefix;
}
/**
* @inheritdoc
*/
public function getMetadataForRegion(string $regionCode): PhoneMetadata
{
$regionCode = strtoupper($regionCode);
if (!array_key_exists($regionCode, $this->regionToMetadataMap)) {
// The regionCode here will be valid and won't be '001', so we don't need to worry about
// what to pass in for the country calling code.
$this->loadMetadataFromFile($this->currentFilePrefix, $regionCode, 0, $this->metadataLoader);
}
return $this->regionToMetadataMap[$regionCode];
}
/**
* @inheritdoc
*/
public function getMetadataForNonGeographicalRegion(int $countryCallingCode): PhoneMetadata
{
if (!array_key_exists($countryCallingCode, $this->countryCodeToNonGeographicalMetadataMap)) {
$this->loadMetadataFromFile($this->currentFilePrefix, PhoneNumberUtil::REGION_CODE_FOR_NON_GEO_ENTITY, $countryCallingCode, $this->metadataLoader);
}
return $this->countryCodeToNonGeographicalMetadataMap[$countryCallingCode];
}
/**
* @param string $filePrefix
* @param string $regionCode
* @param int $countryCallingCode
* @param MetadataLoaderInterface $metadataLoader
*/
public function loadMetadataFromFile(string $filePrefix, string $regionCode, int $countryCallingCode, MetadataLoaderInterface $metadataLoader): void
{
$regionCode = strtoupper($regionCode);
$isNonGeoRegion = PhoneNumberUtil::REGION_CODE_FOR_NON_GEO_ENTITY === $regionCode;
$fileName = $filePrefix . '_' . ($isNonGeoRegion ? $countryCallingCode : $regionCode) . '.php';
if (!is_readable($fileName)) {
throw new \RuntimeException('missing metadata: ' . $fileName);
}
$data = $metadataLoader->loadMetadata($fileName);
$metadata = new PhoneMetadata();
$metadata->fromArray($data);
if ($isNonGeoRegion) {
$this->countryCodeToNonGeographicalMetadataMap[$countryCallingCode] = $metadata;
} else {
$this->regionToMetadataMap[$regionCode] = $metadata;
}
}
}
@@ -0,0 +1,252 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* Number Format
* @interal
* @phpstan-type NumberFormatArray array{pattern:string|null,format:string|null,leadingDigitsPatterns:array<string>,nationalPrefixFormattingRule?:string,domesticCarrierCodeFormattingRule?:string,nationalPrefixOptionalWhenFormatting?:bool}
*/
class NumberFormat
{
protected ?string $pattern;
protected bool $hasPattern = false;
protected ?string $format;
protected bool $hasFormat = false;
/**
* @var array<string>
*/
protected array $leadingDigitsPattern = [];
protected string $nationalPrefixFormattingRule = '';
protected bool $hasNationalPrefixFormattingRule = false;
protected bool $nationalPrefixOptionalWhenFormatting = false;
protected bool $hasNationalPrefixOptionalWhenFormatting = false;
protected string $domesticCarrierCodeFormattingRule = '';
protected bool $hasDomesticCarrierCodeFormattingRule = false;
public function __construct()
{
$this->clear();
}
/**
* @return NumberFormat
*/
public function clear(): NumberFormat
{
$this->hasPattern = false;
$this->pattern = null;
$this->hasFormat = false;
$this->format = null;
$this->leadingDigitsPattern = [];
$this->hasNationalPrefixFormattingRule = false;
$this->nationalPrefixFormattingRule = '';
$this->hasNationalPrefixOptionalWhenFormatting = false;
$this->nationalPrefixOptionalWhenFormatting = false;
$this->hasDomesticCarrierCodeFormattingRule = false;
$this->domesticCarrierCodeFormattingRule = '';
return $this;
}
public function hasPattern(): bool
{
return $this->hasPattern;
}
public function getPattern(): ?string
{
return $this->pattern;
}
public function setPattern(string $value): NumberFormat
{
$this->hasPattern = true;
$this->pattern = $value;
return $this;
}
public function hasNationalPrefixOptionalWhenFormatting(): bool
{
return $this->hasNationalPrefixOptionalWhenFormatting;
}
public function getNationalPrefixOptionalWhenFormatting(): bool
{
return $this->nationalPrefixOptionalWhenFormatting;
}
public function setNationalPrefixOptionalWhenFormatting(bool $nationalPrefixOptionalWhenFormatting): void
{
$this->hasNationalPrefixOptionalWhenFormatting = true;
$this->nationalPrefixOptionalWhenFormatting = $nationalPrefixOptionalWhenFormatting;
}
public function hasFormat(): bool
{
return $this->hasFormat;
}
public function getFormat(): ?string
{
return $this->format;
}
public function setFormat(string $value): NumberFormat
{
$this->hasFormat = true;
$this->format = $value;
return $this;
}
/**
* @return string[]
*/
public function leadingDigitPatterns(): array
{
return $this->leadingDigitsPattern;
}
public function leadingDigitsPatternSize(): int
{
return count($this->leadingDigitsPattern);
}
public function getLeadingDigitsPattern(int $index): string
{
return $this->leadingDigitsPattern[$index];
}
public function addLeadingDigitsPattern(string $value): NumberFormat
{
$this->leadingDigitsPattern[] = $value;
return $this;
}
public function hasNationalPrefixFormattingRule(): bool
{
return $this->hasNationalPrefixFormattingRule;
}
public function getNationalPrefixFormattingRule(): string
{
return $this->nationalPrefixFormattingRule;
}
public function setNationalPrefixFormattingRule(string $value): NumberFormat
{
$this->hasNationalPrefixFormattingRule = true;
$this->nationalPrefixFormattingRule = $value;
return $this;
}
public function clearNationalPrefixFormattingRule(): NumberFormat
{
$this->nationalPrefixFormattingRule = '';
return $this;
}
public function hasDomesticCarrierCodeFormattingRule(): bool
{
return $this->hasDomesticCarrierCodeFormattingRule;
}
public function getDomesticCarrierCodeFormattingRule(): string
{
return $this->domesticCarrierCodeFormattingRule;
}
public function setDomesticCarrierCodeFormattingRule(string $value): NumberFormat
{
$this->hasDomesticCarrierCodeFormattingRule = true;
$this->domesticCarrierCodeFormattingRule = $value;
return $this;
}
public function mergeFrom(NumberFormat $other): NumberFormat
{
if ($other->hasPattern()) {
$this->setPattern($other->getPattern());
}
if ($other->hasFormat()) {
$this->setFormat($other->getFormat());
}
$leadingDigitsPatternSize = $other->leadingDigitsPatternSize();
for ($i = 0; $i < $leadingDigitsPatternSize; $i++) {
$this->addLeadingDigitsPattern($other->getLeadingDigitsPattern($i));
}
if ($other->hasNationalPrefixFormattingRule()) {
$this->setNationalPrefixFormattingRule($other->getNationalPrefixFormattingRule());
}
if ($other->hasDomesticCarrierCodeFormattingRule()) {
$this->setDomesticCarrierCodeFormattingRule($other->getDomesticCarrierCodeFormattingRule());
}
if ($other->hasNationalPrefixOptionalWhenFormatting()) {
$this->setNationalPrefixOptionalWhenFormatting($other->getNationalPrefixOptionalWhenFormatting());
}
return $this;
}
/**
* @return NumberFormatArray
*/
public function toArray(): array
{
$output = [];
$output['pattern'] = $this->getPattern();
$output['format'] = $this->getFormat();
$output['leadingDigitsPatterns'] = $this->leadingDigitPatterns();
if ($this->hasNationalPrefixFormattingRule()) {
$output['nationalPrefixFormattingRule'] = $this->getNationalPrefixFormattingRule();
}
if ($this->hasDomesticCarrierCodeFormattingRule()) {
$output['domesticCarrierCodeFormattingRule'] = $this->getDomesticCarrierCodeFormattingRule();
}
if ($this->hasNationalPrefixOptionalWhenFormatting()) {
$output['nationalPrefixOptionalWhenFormatting'] = $this->getNationalPrefixOptionalWhenFormatting();
}
return $output;
}
/**
* @param NumberFormatArray $input
*/
public function fromArray(array $input): void
{
$this->setPattern($input['pattern']);
$this->setFormat($input['format']);
foreach ($input['leadingDigitsPatterns'] as $leadingDigitsPattern) {
$this->addLeadingDigitsPattern($leadingDigitsPattern);
}
if (isset($input['nationalPrefixFormattingRule']) && $input['nationalPrefixFormattingRule'] !== '') {
$this->setNationalPrefixFormattingRule($input['nationalPrefixFormattingRule']);
}
if (isset($input['domesticCarrierCodeFormattingRule']) && $input['domesticCarrierCodeFormattingRule'] !== '') {
$this->setDomesticCarrierCodeFormattingRule($input['domesticCarrierCodeFormattingRule']);
}
if (isset($input['nationalPrefixOptionalWhenFormatting'])) {
$this->setNationalPrefixOptionalWhenFormatting($input['nationalPrefixOptionalWhenFormatting']);
}
}
}
@@ -0,0 +1,60 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* Generic exception class for errors encountered when parsing phone numbers.
*/
class NumberParseException extends \Exception implements \Stringable
{
/**
* The country code supplied did not belong to a supported country or non-geographical entity.
*/
public const INVALID_COUNTRY_CODE = 0;
/**
* This indicates the string passed is not a valid number. Either the string had less than 3
* digits in it or had an invalid phone-context parameter. More specifically, the number failed
* to match the regular expression VALID_PHONE_NUMBER, RFC3966_GLOBAL_NUMBER_DIGITS, or
* RFC3966_DOMAINNAME in PhoneNumberUtil
*/
public const NOT_A_NUMBER = 1;
/**
* This indicates the string started with an international dialing prefix, but after this was
* stripped from the number, had less digits than any valid phone number (including country
* code) could have.
*/
public const TOO_SHORT_AFTER_IDD = 2;
/**
* This indicates the string, after any country code has been stripped, had less digits than any
* valid phone number could have.
*/
public const TOO_SHORT_NSN = 3;
/**
* This indicates the string had more digits than any valid phone number could have.
*/
public const TOO_LONG = 4;
protected int $errorType;
public function __construct(int $errorType, string $message, ?\Throwable $previous = null)
{
parent::__construct($message, $errorType, $previous);
$this->message = $message;
$this->errorType = $errorType;
}
/**
* Returns the error type of the exception that has been thrown.
*/
public function getErrorType(): int
{
return $this->errorType;
}
public function __toString(): string
{
return 'Error type: ' . $this->errorType . '. ' . $this->message;
}
}
@@ -0,0 +1,907 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* Class PhoneMetadata
* @package libphonenumber
* @internal Used internally, and can change at any time
* @phpstan-import-type PhoneNumberDescArray from PhoneNumberDesc
* @phpstan-import-type NumberFormatArray from NumberFormat
* @phpstan-type PhoneMetadataArray array{generalDesc?:PhoneNumberDescArray,fixedLine?:PhoneNumberDescArray,mobile?:PhoneNumberDescArray,tollFree?:PhoneNumberDescArray,premiumRate?:PhoneNumberDescArray,sharedCost?:PhoneNumberDescArray,personalNumber?:PhoneNumberDescArray,voip?:PhoneNumberDescArray,pager?:PhoneNumberDescArray,uan?:PhoneNumberDescArray,emergency?:PhoneNumberDescArray,voicemail?:PhoneNumberDescArray,shortCode?:PhoneNumberDescArray,standardRate?:PhoneNumberDescArray,carrierSpecific?:PhoneNumberDescArray,smsServices?:PhoneNumberDescArray,noInternationalDialling?:PhoneNumberDescArray,id:string|null,countryCode?:int,internationalPrefix?:string,preferredInternationalPrefix?:string,nationalPrefix?:string,preferredExtnPrefix?:string,nationalPrefixForParsing?:string,nationalPrefixTransformRule?:string,sameMobileAndFixedLinePattern?:bool,numberFormat:NumberFormatArray[],intlNumberFormat?:NumberFormatArray[],mainCountryForCode:bool,leadingDigits?:string,mobileNumberPortableRegion?:bool}
*/
class PhoneMetadata
{
protected ?string $id = null;
protected ?int $countryCode = null;
protected string $leadingDigits;
protected string $internationalPrefix;
protected ?string $preferredInternationalPrefix = null;
protected ?string $nationalPrefixForParsing = null;
protected ?string $nationalPrefixTransformRule = null;
protected ?string $nationalPrefix = null;
protected ?string $preferredExtnPrefix = null;
protected bool $mainCountryForCode = false;
protected bool $mobileNumberPortableRegion = false;
protected ?PhoneNumberDesc $generalDesc = null;
protected ?PhoneNumberDesc $mobile = null;
protected ?PhoneNumberDesc $premiumRate = null;
protected ?PhoneNumberDesc $fixedLine = null;
protected bool $sameMobileAndFixedLinePattern = false;
/**
* @var NumberFormat[]
*/
protected array $numberFormat = [];
protected ?PhoneNumberDesc $tollFree = null;
protected ?PhoneNumberDesc $sharedCost = null;
protected ?PhoneNumberDesc $personalNumber = null;
protected ?PhoneNumberDesc $voip = null;
protected ?PhoneNumberDesc $pager = null;
protected ?PhoneNumberDesc $uan = null;
protected ?PhoneNumberDesc $emergency = null;
protected ?PhoneNumberDesc $voicemail = null;
protected ?PhoneNumberDesc $short_code = null;
protected ?PhoneNumberDesc $standard_rate = null;
protected ?PhoneNumberDesc $carrierSpecific = null;
protected ?PhoneNumberDesc $smsServices = null;
protected ?PhoneNumberDesc $noInternationalDialling = null;
/**
* @var NumberFormat[]
*/
protected array $intlNumberFormat = [];
public function hasId(): bool
{
return isset($this->id);
}
public function hasMainCountryForCode(): bool
{
return isset($this->mainCountryForCode);
}
public function isMainCountryForCode(): bool
{
return $this->mainCountryForCode;
}
public function getMainCountryForCode(): bool
{
return $this->mainCountryForCode;
}
public function setMainCountryForCode(bool $value): PhoneMetadata
{
$this->mainCountryForCode = $value;
return $this;
}
public function clearMainCountryForCode(): PhoneMetadata
{
$this->mainCountryForCode = false;
return $this;
}
public function numberFormatSize(): int
{
return \count($this->numberFormat);
}
/**
* @param int $index
* @return NumberFormat
*/
public function getNumberFormat(int $index): NumberFormat
{
return $this->numberFormat[$index];
}
public function intlNumberFormatSize(): int
{
return \count($this->intlNumberFormat);
}
public function getIntlNumberFormat(int $index): NumberFormat
{
return $this->intlNumberFormat[$index];
}
public function clearIntlNumberFormat(): PhoneMetadata
{
$this->intlNumberFormat = [];
return $this;
}
/**
* @return PhoneMetadataArray
*/
public function toArray(): array
{
$output = [];
if ($this->hasGeneralDesc()) {
$output['generalDesc'] = $this->getGeneralDesc()->toArray();
}
if ($this->hasFixedLine()) {
$output['fixedLine'] = $this->getFixedLine()->toArray();
}
if ($this->hasMobile()) {
$output['mobile'] = $this->getMobile()->toArray();
}
if ($this->hasTollFree()) {
$output['tollFree'] = $this->getTollFree()->toArray();
}
if ($this->hasPremiumRate()) {
$output['premiumRate'] = $this->getPremiumRate()->toArray();
}
if ($this->hasSharedCost()) {
$output['sharedCost'] = $this->getSharedCost()->toArray();
}
if ($this->hasPersonalNumber()) {
$output['personalNumber'] = $this->getPersonalNumber()->toArray();
}
if ($this->hasVoip()) {
$output['voip'] = $this->getVoip()->toArray();
}
if ($this->hasPager()) {
$output['pager'] = $this->getPager()->toArray();
}
if ($this->hasUan()) {
$output['uan'] = $this->getUan()->toArray();
}
if ($this->hasEmergency()) {
$output['emergency'] = $this->getEmergency()->toArray();
}
if ($this->hasVoicemail()) {
$output['voicemail'] = $this->getVoicemail()->toArray();
}
if ($this->hasShortCode()) {
$output['shortCode'] = $this->getShortCode()->toArray();
}
if ($this->hasStandardRate()) {
$output['standardRate'] = $this->getStandardRate()->toArray();
}
if ($this->hasCarrierSpecific()) {
$output['carrierSpecific'] = $this->getCarrierSpecific()->toArray();
}
if ($this->hasSmsServices()) {
$output['smsServices'] = $this->getSmsServices()->toArray();
}
if ($this->hasNoInternationalDialling()) {
$output['noInternationalDialling'] = $this->getNoInternationalDialling()->toArray();
}
$output['id'] = $this->getId();
if ($this->hasCountryCode()) {
$output['countryCode'] = $this->getCountryCode();
}
if ($this->hasInternationalPrefix()) {
$output['internationalPrefix'] = $this->getInternationalPrefix();
}
if ($this->hasPreferredInternationalPrefix()) {
$output['preferredInternationalPrefix'] = $this->getPreferredInternationalPrefix();
}
if ($this->hasNationalPrefix()) {
$output['nationalPrefix'] = $this->getNationalPrefix();
}
if ($this->hasPreferredExtnPrefix()) {
$output['preferredExtnPrefix'] = $this->getPreferredExtnPrefix();
}
if ($this->hasNationalPrefixForParsing()) {
$output['nationalPrefixForParsing'] = $this->getNationalPrefixForParsing();
}
if ($this->hasNationalPrefixTransformRule()) {
$output['nationalPrefixTransformRule'] = $this->getNationalPrefixTransformRule();
}
if ($this->hasSameMobileAndFixedLinePattern()) {
$output['sameMobileAndFixedLinePattern'] = $this->getSameMobileAndFixedLinePattern();
}
$output['numberFormat'] = [];
foreach ($this->numberFormats() as $numberFormat) {
$output['numberFormat'][] = $numberFormat->toArray();
}
if (!empty($this->intlNumberFormats())) {
$output['intlNumberFormat'] = [];
foreach ($this->intlNumberFormats() as $intlNumberFormat) {
$output['intlNumberFormat'][] = $intlNumberFormat->toArray();
}
}
$output['mainCountryForCode'] = $this->getMainCountryForCode();
if ($this->hasLeadingDigits()) {
$output['leadingDigits'] = $this->getLeadingDigits();
}
if ($this->hasMobileNumberPortableRegion()) {
$output['mobileNumberPortableRegion'] = $this->isMobileNumberPortableRegion();
}
return $output;
}
public function hasGeneralDesc(): bool
{
return isset($this->generalDesc);
}
public function getGeneralDesc(): ?PhoneNumberDesc
{
return $this->generalDesc;
}
public function setGeneralDesc(PhoneNumberDesc $value): PhoneMetadata
{
$this->generalDesc = $value;
return $this;
}
public function hasFixedLine(): bool
{
return isset($this->fixedLine);
}
public function getFixedLine(): ?PhoneNumberDesc
{
return $this->fixedLine;
}
public function setFixedLine(PhoneNumberDesc $value): PhoneMetadata
{
$this->fixedLine = $value;
return $this;
}
public function hasMobile(): bool
{
return isset($this->mobile);
}
public function getMobile(): ?PhoneNumberDesc
{
return $this->mobile;
}
public function setMobile(PhoneNumberDesc $value): PhoneMetadata
{
$this->mobile = $value;
return $this;
}
public function hasTollFree(): bool
{
return isset($this->tollFree);
}
public function getTollFree(): ?PhoneNumberDesc
{
return $this->tollFree;
}
public function setTollFree(PhoneNumberDesc $value): PhoneMetadata
{
$this->tollFree = $value;
return $this;
}
public function hasPremiumRate(): bool
{
return isset($this->premiumRate);
}
public function getPremiumRate(): ?PhoneNumberDesc
{
return $this->premiumRate;
}
public function setPremiumRate(PhoneNumberDesc $value): PhoneMetadata
{
$this->premiumRate = $value;
return $this;
}
public function hasSharedCost(): bool
{
return isset($this->sharedCost);
}
public function getSharedCost(): ?PhoneNumberDesc
{
return $this->sharedCost;
}
public function setSharedCost(PhoneNumberDesc $value): PhoneMetadata
{
$this->sharedCost = $value;
return $this;
}
public function hasPersonalNumber(): bool
{
return isset($this->personalNumber);
}
public function getPersonalNumber(): ?PhoneNumberDesc
{
return $this->personalNumber;
}
public function setPersonalNumber(PhoneNumberDesc $value): PhoneMetadata
{
$this->personalNumber = $value;
return $this;
}
public function hasVoip(): bool
{
return isset($this->voip);
}
public function getVoip(): ?PhoneNumberDesc
{
return $this->voip;
}
public function setVoip(PhoneNumberDesc $value): PhoneMetadata
{
$this->voip = $value;
return $this;
}
public function hasPager(): bool
{
return isset($this->pager);
}
public function getPager(): ?PhoneNumberDesc
{
return $this->pager;
}
public function setPager(PhoneNumberDesc $value): PhoneMetadata
{
$this->pager = $value;
return $this;
}
public function hasUan(): bool
{
return isset($this->uan);
}
public function getUan(): ?PhoneNumberDesc
{
return $this->uan;
}
public function setUan(PhoneNumberDesc $value): PhoneMetadata
{
$this->uan = $value;
return $this;
}
public function hasEmergency(): bool
{
return isset($this->emergency);
}
public function getEmergency(): ?PhoneNumberDesc
{
return $this->emergency;
}
public function setEmergency(PhoneNumberDesc $value): PhoneMetadata
{
$this->emergency = $value;
return $this;
}
public function hasVoicemail(): bool
{
return isset($this->voicemail);
}
public function getVoicemail(): ?PhoneNumberDesc
{
return $this->voicemail;
}
public function setVoicemail(PhoneNumberDesc $value): PhoneMetadata
{
$this->voicemail = $value;
return $this;
}
public function hasShortCode(): bool
{
return isset($this->short_code);
}
public function getShortCode(): ?PhoneNumberDesc
{
return $this->short_code;
}
public function setShortCode(PhoneNumberDesc $value): PhoneMetadata
{
$this->short_code = $value;
return $this;
}
public function hasStandardRate(): bool
{
return isset($this->standard_rate);
}
public function getStandardRate(): ?PhoneNumberDesc
{
return $this->standard_rate;
}
public function setStandardRate(PhoneNumberDesc $value): PhoneMetadata
{
$this->standard_rate = $value;
return $this;
}
public function hasCarrierSpecific(): bool
{
return isset($this->carrierSpecific);
}
public function getCarrierSpecific(): ?PhoneNumberDesc
{
return $this->carrierSpecific;
}
public function setCarrierSpecific(PhoneNumberDesc $value): PhoneMetadata
{
$this->carrierSpecific = $value;
return $this;
}
public function hasSmsServices(): bool
{
return isset($this->smsServices);
}
public function getSmsServices(): ?PhoneNumberDesc
{
return $this->smsServices;
}
public function setSmsServices(PhoneNumberDesc $value): PhoneMetadata
{
$this->smsServices = $value;
return $this;
}
public function hasNoInternationalDialling(): bool
{
return isset($this->noInternationalDialling);
}
public function getNoInternationalDialling(): ?PhoneNumberDesc
{
return $this->noInternationalDialling;
}
public function setNoInternationalDialling(PhoneNumberDesc $value): PhoneMetadata
{
$this->noInternationalDialling = $value;
return $this;
}
public function getId(): ?string
{
return $this->id;
}
public function setId(string $value): PhoneMetadata
{
$this->id = $value;
return $this;
}
/** @phpstan-assert-if-true !null $this->getCountryCode() */
public function hasCountryCode(): bool
{
return isset($this->countryCode);
}
public function getCountryCode(): ?int
{
return $this->countryCode;
}
public function setCountryCode(int $value): PhoneMetadata
{
$this->countryCode = $value;
return $this;
}
public function hasInternationalPrefix(): bool
{
return isset($this->internationalPrefix);
}
public function getInternationalPrefix(): string
{
return $this->internationalPrefix;
}
public function setInternationalPrefix(string $value): PhoneMetadata
{
$this->internationalPrefix = $value;
return $this;
}
/** @phpstan-assert-if-true !null $this->getPreferredInternationalPrefix() */
public function hasPreferredInternationalPrefix(): bool
{
return isset($this->preferredInternationalPrefix);
}
public function getPreferredInternationalPrefix(): ?string
{
return $this->preferredInternationalPrefix;
}
public function setPreferredInternationalPrefix(string $value): PhoneMetadata
{
$this->preferredInternationalPrefix = $value;
return $this;
}
/** @phpstan-assert-if-true !null $this->getNationalPrefix() */
public function hasNationalPrefix(): bool
{
return isset($this->nationalPrefix);
}
public function getNationalPrefix(): ?string
{
return $this->nationalPrefix;
}
public function setNationalPrefix(string $value): PhoneMetadata
{
$this->nationalPrefix = $value;
return $this;
}
/** @phpstan-assert-if-true !null $this->getPreferredExtnPrefix() */
public function hasPreferredExtnPrefix(): bool
{
return isset($this->preferredExtnPrefix);
}
public function getPreferredExtnPrefix(): ?string
{
return $this->preferredExtnPrefix;
}
public function setPreferredExtnPrefix(string $value): PhoneMetadata
{
$this->preferredExtnPrefix = $value;
return $this;
}
/** @phpstan-assert-if-true !null $this->getNationalPrefixForParsing() */
public function hasNationalPrefixForParsing(): bool
{
return isset($this->nationalPrefixForParsing);
}
public function getNationalPrefixForParsing(): ?string
{
return $this->nationalPrefixForParsing;
}
public function setNationalPrefixForParsing(string $value): PhoneMetadata
{
$this->nationalPrefixForParsing = $value;
return $this;
}
/** @phpstan-assert-if-true !null $this->getNationalPrefixTransformRule() */
public function hasNationalPrefixTransformRule(): bool
{
return isset($this->nationalPrefixTransformRule);
}
public function getNationalPrefixTransformRule(): ?string
{
return $this->nationalPrefixTransformRule;
}
public function setNationalPrefixTransformRule(string $value): PhoneMetadata
{
$this->nationalPrefixTransformRule = $value;
return $this;
}
public function hasSameMobileAndFixedLinePattern(): bool
{
return isset($this->sameMobileAndFixedLinePattern);
}
public function getSameMobileAndFixedLinePattern(): bool
{
return $this->sameMobileAndFixedLinePattern;
}
public function setSameMobileAndFixedLinePattern(bool $value): PhoneMetadata
{
$this->sameMobileAndFixedLinePattern = $value;
return $this;
}
/**
* @return NumberFormat[]
*/
public function numberFormats(): array
{
return $this->numberFormat;
}
/**
* @return NumberFormat[]
*/
public function intlNumberFormats(): array
{
return $this->intlNumberFormat;
}
public function hasLeadingDigits(): bool
{
return isset($this->leadingDigits);
}
public function getLeadingDigits(): string
{
return $this->leadingDigits;
}
public function setLeadingDigits(string $value): PhoneMetadata
{
$this->leadingDigits = $value;
return $this;
}
public function hasMobileNumberPortableRegion(): bool
{
return isset($this->mobileNumberPortableRegion);
}
public function isMobileNumberPortableRegion(): bool
{
return $this->mobileNumberPortableRegion;
}
public function setMobileNumberPortableRegion(bool $value): PhoneMetadata
{
$this->mobileNumberPortableRegion = $value;
return $this;
}
public function clearPreferredInternationalPrefix(): PhoneMetadata
{
unset($this->preferredInternationalPrefix);
return $this;
}
public function clearNationalPrefix(): PhoneMetadata
{
unset($this->nationalPrefix);
return $this;
}
public function clearPreferredExtnPrefix(): PhoneMetadata
{
unset($this->preferredExtnPrefix);
return $this;
}
public function clearNationalPrefixTransformRule(): PhoneMetadata
{
unset($this->nationalPrefixTransformRule);
return $this;
}
public function clearSameMobileAndFixedLinePattern(): PhoneMetadata
{
$this->sameMobileAndFixedLinePattern = false;
return $this;
}
public function clearMobileNumberPortableRegion(): PhoneMetadata
{
$this->mobileNumberPortableRegion = false;
return $this;
}
/**
* @param PhoneMetadataArray $input
*/
public function fromArray(array $input): PhoneMetadata
{
if (isset($input['generalDesc'])) {
$desc = new PhoneNumberDesc();
$this->setGeneralDesc($desc->fromArray($input['generalDesc']));
}
if (isset($input['fixedLine'])) {
$desc = new PhoneNumberDesc();
$this->setFixedLine($desc->fromArray($input['fixedLine']));
}
if (isset($input['mobile'])) {
$desc = new PhoneNumberDesc();
$this->setMobile($desc->fromArray($input['mobile']));
}
if (isset($input['tollFree'])) {
$desc = new PhoneNumberDesc();
$this->setTollFree($desc->fromArray($input['tollFree']));
}
if (isset($input['premiumRate'])) {
$desc = new PhoneNumberDesc();
$this->setPremiumRate($desc->fromArray($input['premiumRate']));
}
if (isset($input['sharedCost'])) {
$desc = new PhoneNumberDesc();
$this->setSharedCost($desc->fromArray($input['sharedCost']));
}
if (isset($input['personalNumber'])) {
$desc = new PhoneNumberDesc();
$this->setPersonalNumber($desc->fromArray($input['personalNumber']));
}
if (isset($input['voip'])) {
$desc = new PhoneNumberDesc();
$this->setVoip($desc->fromArray($input['voip']));
}
if (isset($input['pager'])) {
$desc = new PhoneNumberDesc();
$this->setPager($desc->fromArray($input['pager']));
}
if (isset($input['uan'])) {
$desc = new PhoneNumberDesc();
$this->setUan($desc->fromArray($input['uan']));
}
if (isset($input['emergency'])) {
$desc = new PhoneNumberDesc();
$this->setEmergency($desc->fromArray($input['emergency']));
}
if (isset($input['voicemail'])) {
$desc = new PhoneNumberDesc();
$this->setVoicemail($desc->fromArray($input['voicemail']));
}
if (isset($input['shortCode'])) {
$desc = new PhoneNumberDesc();
$this->setShortCode($desc->fromArray($input['shortCode']));
}
if (isset($input['standardRate'])) {
$desc = new PhoneNumberDesc();
$this->setStandardRate($desc->fromArray($input['standardRate']));
}
if (isset($input['carrierSpecific'])) {
$desc = new PhoneNumberDesc();
$this->setCarrierSpecific($desc->fromArray($input['carrierSpecific']));
}
if (isset($input['smsServices'])) {
$desc = new PhoneNumberDesc();
$this->setSmsServices($desc->fromArray($input['smsServices']));
}
if (isset($input['noInternationalDialling'])) {
$desc = new PhoneNumberDesc();
$this->setNoInternationalDialling($desc->fromArray($input['noInternationalDialling']));
}
$this->setId($input['id']);
if (isset($input['countryCode'])) {
$this->setCountryCode($input['countryCode']);
}
if (isset($input['internationalPrefix'])) {
$this->setInternationalPrefix($input['internationalPrefix']);
}
if (isset($input['preferredInternationalPrefix'])) {
$this->setPreferredInternationalPrefix($input['preferredInternationalPrefix']);
}
if (isset($input['nationalPrefix'])) {
$this->setNationalPrefix($input['nationalPrefix']);
}
if (isset($input['preferredExtnPrefix'])) {
$this->setPreferredExtnPrefix($input['preferredExtnPrefix']);
}
if (isset($input['nationalPrefixForParsing'])) {
$this->setNationalPrefixForParsing($input['nationalPrefixForParsing']);
}
if (isset($input['nationalPrefixTransformRule'])) {
$this->setNationalPrefixTransformRule($input['nationalPrefixTransformRule']);
}
foreach ($input['numberFormat'] ?? [] as $numberFormatElt) {
$numberFormat = new NumberFormat();
$numberFormat->fromArray($numberFormatElt);
$this->addNumberFormat($numberFormat);
}
foreach ($input['intlNumberFormat'] ?? [] as $intlNumberFormatElt) {
$numberFormat = new NumberFormat();
$numberFormat->fromArray($intlNumberFormatElt);
$this->addIntlNumberFormat($numberFormat);
}
$this->setMainCountryForCode($input['mainCountryForCode']);
if (isset($input['leadingDigits'])) {
$this->setLeadingDigits($input['leadingDigits']);
}
if (isset($input['mobileNumberPortableRegion'])) {
$this->setMobileNumberPortableRegion($input['mobileNumberPortableRegion']);
}
return $this;
}
public function addNumberFormat(NumberFormat $value): PhoneMetadata
{
$this->numberFormat[] = $value;
return $this;
}
public function addIntlNumberFormat(NumberFormat $value): PhoneMetadata
{
$this->intlNumberFormat[] = $value;
return $this;
}
}
@@ -0,0 +1,586 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
class PhoneNumber implements \Serializable, \Stringable
{
/**
* The country calling code for this number, as defined by the International Telecommunication Union
* (ITU). For example, this would be 1 for NANPA countries, and 33 for France.
*/
protected ?int $countryCode = null;
/**
* National (significant) Number is defined in International Telecommunication Union (ITU)
* Recommendation E.164. It is a language/country-neutral representation of a phone number at a
* country level. For countries which have the concept of an "area code" or "national destination
* code", this is included in the National (significant) Number. Although the ITU says the maximum
* length should be 15, we have found longer numbers in some countries e.g. Germany.
*
* Note that the National (significant) Number does not contain the National(trunk) prefix.
*/
protected ?string $nationalNumber = null;
/**
* Extension is not standardized in ITU recommendations, except for being defined as a series of
* numbers with a maximum length of 40 digits. It is defined as a string here to accommodate for the
* possible use of a leading zero in the extension (organizations have complete freedom to do so,
* as there is no standard defined). However, only ASCII digits should be stored here.
*/
protected ?string $extension = null;
/**
* In some countries, the national (significant) number starts with one or more "0"s without this
* being a national prefix or trunk code of some kind. For example, the leading zero in the national
* (significant) number of an Italian phone number indicates the number is a fixed-line number.
* There have been plans to migrate fixed-line numbers to start with the digit two since December
* 2000, but it has not happened yet. See http://en.wikipedia.org/wiki/%2B39 for more details.
*
* These fields can be safely ignored (there is no need to set them) for most countries. Some
* limited number of countries behave like Italy - for these cases, if the leading zero(s) of a
* number would be retained even when dialling internationally, set this flag to true, and also
* set the number of leading zeros.
*
* Clients who use the parsing functionality of the i18n phone number libraries
* will have these fields set if necessary automatically.
*/
protected ?bool $italianLeadingZero = null;
/**
* This field is used to store the raw input string containing phone numbers before it was
* canonicalized by the library. For example, it could be used to store alphanumerical numbers
* such as "1-800-GOOG-411".
*/
protected ?string $rawInput = null;
/**
* The source from which the country_code is derived. This is not set in the general parsing method,
* but in the method that parses and keeps raw_input. New fields could be added upon request.
*
* @see CountryCodeSource
*
* This must be one of the CountryCodeSource constants.
*/
protected int $countryCodeSource = CountryCodeSource::UNSPECIFIED;
/**
* The carrier selection code that is preferred when calling this phone number domestically. This
* also includes codes that need to be dialed in some countries when calling from landlines to
* mobiles or vice versa. For example, in Columbia, a "3" needs to be dialed before the phone number
* itself when calling from a mobile phone to a domestic landline phone and vice versa.
*
* Note this is the "preferred" code, which means other codes may work as well.
*/
protected ?string $preferredDomesticCarrierCode = null;
/**
* Whether this phone number has a number of leading zeros set.
*/
protected bool $hasNumberOfLeadingZeros = false;
/**
* The number of leading zeros of this phone number.
*/
protected int $numberOfLeadingZeros = 1;
/**
* Clears this phone number.
*
* This effectively resets this phone number to the state of a new instance.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clear(): PhoneNumber
{
$this->clearCountryCode();
$this->clearNationalNumber();
$this->clearExtension();
$this->clearItalianLeadingZero();
$this->clearNumberOfLeadingZeros();
$this->clearRawInput();
$this->clearCountryCodeSource();
$this->clearPreferredDomesticCarrierCode();
return $this;
}
/**
* Clears the country code of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearCountryCode(): PhoneNumber
{
$this->countryCode = null;
return $this;
}
/**
* Clears the national number of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearNationalNumber(): PhoneNumber
{
$this->nationalNumber = null;
return $this;
}
/**
* Clears the extension of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearExtension(): PhoneNumber
{
$this->extension = null;
return $this;
}
/**
* Clears the italian leading zero information of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearItalianLeadingZero(): PhoneNumber
{
$this->italianLeadingZero = null;
return $this;
}
/**
* Clears the number of leading zeros of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearNumberOfLeadingZeros(): PhoneNumber
{
$this->hasNumberOfLeadingZeros = false;
$this->numberOfLeadingZeros = 1;
return $this;
}
/**
* Clears the raw input of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearRawInput(): PhoneNumber
{
$this->rawInput = null;
return $this;
}
/**
* Clears the country code source of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearCountryCodeSource(): PhoneNumber
{
$this->countryCodeSource = CountryCodeSource::UNSPECIFIED;
return $this;
}
/**
* Clears the preferred domestic carrier code of this phone number.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function clearPreferredDomesticCarrierCode(): PhoneNumber
{
$this->preferredDomesticCarrierCode = null;
return $this;
}
/**
* Merges the information from another phone number into this phone number.
*
* @param PhoneNumber $other The phone number to copy.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function mergeFrom(PhoneNumber $other): PhoneNumber
{
if ($other->hasCountryCode()) {
$this->setCountryCode($other->getCountryCode());
}
if ($other->hasNationalNumber()) {
$this->setNationalNumber($other->getNationalNumber());
}
if ($other->hasExtension()) {
$this->setExtension($other->getExtension());
}
if ($other->hasItalianLeadingZero()) {
$this->setItalianLeadingZero($other->isItalianLeadingZero());
}
if ($other->hasNumberOfLeadingZeros()) {
$this->setNumberOfLeadingZeros($other->getNumberOfLeadingZeros());
}
if ($other->hasRawInput()) {
$this->setRawInput($other->getRawInput());
}
if ($other->hasCountryCodeSource()) {
$this->setCountryCodeSource($other->getCountryCodeSource());
}
if ($other->hasPreferredDomesticCarrierCode()) {
$this->setPreferredDomesticCarrierCode($other->getPreferredDomesticCarrierCode());
}
return $this;
}
/**
* Returns whether this phone number has a country code set.
*
* @return bool True if a country code is set, false otherwise.
*/
public function hasCountryCode(): bool
{
return $this->countryCode !== null;
}
/**
* Returns the country code of this phone number.
*
* @return int|null The country code, or null if not set.
*/
public function getCountryCode(): ?int
{
return $this->countryCode;
}
/**
* Sets the country code of this phone number.
*
* @param int $value The country code.
*
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setCountryCode(int $value): PhoneNumber
{
$this->countryCode = $value;
return $this;
}
/**
* Returns whether this phone number has a national number set.
*
* @return bool True if a national number is set, false otherwise.
*/
public function hasNationalNumber(): bool
{
return $this->nationalNumber !== null;
}
/**
* Returns the national number of this phone number.
*
* @return string|null The national number, or null if not set.
*/
public function getNationalNumber(): ?string
{
return $this->nationalNumber;
}
/**
* Sets the national number of this phone number.
*
* @param string $value The national number.
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setNationalNumber(string $value): PhoneNumber
{
$this->nationalNumber = $value;
return $this;
}
/**
* Returns whether this phone number has an extension set.
*
* @return bool True if an extension is set, false otherwise.
*/
public function hasExtension(): bool
{
return $this->extension !== null;
}
/**
* Returns the extension of this phone number.
*
* @return string|null The extension, or null if not set.
*/
public function getExtension(): ?string
{
return $this->extension;
}
/**
* Sets the extension of this phone number.
*
* @param string $value The extension.
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setExtension(string $value): PhoneNumber
{
$this->extension = $value;
return $this;
}
/**
* Returns whether this phone number has the italian leading zero information set.
*
* @return bool
*/
public function hasItalianLeadingZero(): bool
{
return $this->italianLeadingZero !== null;
}
/**
* Sets whether this phone number uses an italian leading zero.
*
* @param bool $value True to use italian leading zero, false otherwise.
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setItalianLeadingZero(bool $value): PhoneNumber
{
$this->italianLeadingZero = $value;
return $this;
}
/**
* Returns whether this phone number uses an italian leading zero.
*
* @return bool|null True if it uses an italian leading zero, false if it does not, null if not set.
*/
public function isItalianLeadingZero(): ?bool
{
return $this->italianLeadingZero;
}
/**
* Returns whether this phone number has a number of leading zeros set.
*
* @return bool True if a number of leading zeros is set, false otherwise.
*/
public function hasNumberOfLeadingZeros(): bool
{
return $this->hasNumberOfLeadingZeros;
}
/**
* Returns the number of leading zeros of this phone number.
*
* @return int The number of leading zeros.
*/
public function getNumberOfLeadingZeros(): int
{
return $this->numberOfLeadingZeros;
}
/**
* Sets the number of leading zeros of this phone number.
*
* @param int $value The number of leading zeros.
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setNumberOfLeadingZeros(int $value): PhoneNumber
{
$this->hasNumberOfLeadingZeros = true;
$this->numberOfLeadingZeros = $value;
return $this;
}
/**
* Returns whether this phone number has a raw input.
*
* @return bool True if a raw input is set, false otherwise.
*/
public function hasRawInput(): bool
{
return $this->rawInput !== null;
}
/**
* Returns the raw input of this phone number.
*
* @return string|null The raw input, or null if not set.
*/
public function getRawInput(): ?string
{
return $this->rawInput;
}
/**
* Sets the raw input of this phone number.
*
* @param string $value The raw input.
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setRawInput(string $value): PhoneNumber
{
$this->rawInput = $value;
return $this;
}
/**
* Returns whether this phone number has a country code source.
*
* @return bool True if a country code source is set, false otherwise.
*/
public function hasCountryCodeSource(): bool
{
return $this->countryCodeSource !== CountryCodeSource::UNSPECIFIED;
}
/**
* Returns the country code source of this phone number.
*
* @return int|null A CountryCodeSource constant, or null if not set.
*/
public function getCountryCodeSource(): ?int
{
return $this->countryCodeSource;
}
/**
* Sets the country code source of this phone number.
*
* @param int $value A CountryCodeSource constant.
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setCountryCodeSource(int $value): PhoneNumber
{
$this->countryCodeSource = $value;
return $this;
}
/**
* Returns whether this phone number has a preferred domestic carrier code.
*
* @return bool True if a preferred domestic carrier code is set, false otherwise.
*/
public function hasPreferredDomesticCarrierCode(): bool
{
return $this->preferredDomesticCarrierCode !== null;
}
/**
* Returns the preferred domestic carrier code of this phone number.
*
* @return string|null The preferred domestic carrier code, or null if not set.
*/
public function getPreferredDomesticCarrierCode(): ?string
{
return $this->preferredDomesticCarrierCode;
}
/**
* Sets the preferred domestic carrier code of this phone number.
*
* @param string $value The preferred domestic carrier code.
* @return PhoneNumber This PhoneNumber instance, for chaining method calls.
*/
public function setPreferredDomesticCarrierCode(string $value): PhoneNumber
{
$this->preferredDomesticCarrierCode = $value;
return $this;
}
/**
* Returns whether this phone number is equal to another.
*
* @param PhoneNumber $other The phone number to compare.
*
* @return bool True if the phone numbers are equal, false otherwise.
*/
public function equals(PhoneNumber $other): bool
{
if ($this === $other) {
return true;
}
return $this->countryCode === $other->countryCode
&& $this->nationalNumber === $other->nationalNumber
&& $this->extension === $other->extension
&& $this->italianLeadingZero === $other->italianLeadingZero
&& $this->numberOfLeadingZeros === $other->numberOfLeadingZeros
&& $this->rawInput === $other->rawInput
&& $this->countryCodeSource === $other->countryCodeSource
&& $this->preferredDomesticCarrierCode === $other->preferredDomesticCarrierCode;
}
/**
* Returns a string representation of this phone number.
* @return string
*/
public function __toString(): string
{
$outputString = 'Country Code: ' . $this->countryCode;
$outputString .= ' National Number: ' . $this->nationalNumber;
if ($this->hasItalianLeadingZero()) {
$outputString .= ' Leading Zero(s): true';
}
if ($this->hasNumberOfLeadingZeros()) {
$outputString .= ' Number of leading zeros: ' . $this->numberOfLeadingZeros;
}
if ($this->hasExtension()) {
$outputString .= ' Extension: ' . $this->extension;
}
if ($this->hasCountryCodeSource()) {
$outputString .= ' Country Code Source: ' . $this->countryCodeSource;
}
if ($this->hasPreferredDomesticCarrierCode()) {
$outputString .= ' Preferred Domestic Carrier Code: ' . $this->preferredDomesticCarrierCode;
}
return $outputString;
}
/**
* @inheritDoc
*/
public function serialize(): ?string
{
return serialize($this->__serialize());
}
/**
* @return array{?int,?string,?string,?bool,int,?string,int,?string}
*/
public function __serialize(): array
{
return [
$this->countryCode,
$this->nationalNumber,
$this->extension,
$this->italianLeadingZero,
$this->numberOfLeadingZeros,
$this->rawInput,
$this->countryCodeSource,
$this->preferredDomesticCarrierCode,
];
}
/**
* @inheritDoc
*/
public function unserialize($data)
{
$this->__unserialize(unserialize($data, ['allowed_classes' => [__CLASS__]]));
}
/**
* @param array{int,?string,?string,?bool,int,?string,int,?string} $data
*/
public function __unserialize(array $data): void
{
[
$this->countryCode,
$this->nationalNumber,
$this->extension,
$this->italianLeadingZero,
$this->numberOfLeadingZeros,
$this->rawInput,
$this->countryCodeSource,
$this->preferredDomesticCarrierCode
] = $data;
if ($this->numberOfLeadingZeros > 1) {
$this->hasNumberOfLeadingZeros = true;
}
}
}
@@ -0,0 +1,216 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* Phone Number Description
* @interal
* @phpstan-type PhoneNumberDescArray array{NationalNumberPattern?:string,ExampleNumber?:string,PossibleLength?:int[],PossibleLengthLocalOnly?:int[]}
*/
class PhoneNumberDesc
{
protected bool $hasNationalNumberPattern = false;
protected string $nationalNumberPattern = '';
protected bool $hasExampleNumber = false;
protected string $exampleNumber = '';
/**
* @var int[]
*/
protected array $possibleLength = [];
/**
* @var int[]
*/
protected array $possibleLengthLocalOnly = [];
public function __construct()
{
$this->clear();
}
public function clear(): PhoneNumberDesc
{
$this->clearNationalNumberPattern();
$this->clearPossibleLength();
$this->clearPossibleLengthLocalOnly();
$this->clearExampleNumber();
return $this;
}
/**
* @return int[]
*/
public function getPossibleLength(): array
{
return $this->possibleLength;
}
/**
* @param int[] $possibleLength
*/
public function setPossibleLength(array $possibleLength): void
{
$this->possibleLength = $possibleLength;
}
public function addPossibleLength(int $possibleLength): void
{
if (!in_array($possibleLength, $this->possibleLength)) {
$this->possibleLength[] = $possibleLength;
}
}
public function clearPossibleLength(): void
{
$this->possibleLength = [];
}
/**
* @return int[]
*/
public function getPossibleLengthLocalOnly(): array
{
return $this->possibleLengthLocalOnly;
}
/**
* @param int[] $possibleLengthLocalOnly
*/
public function setPossibleLengthLocalOnly(array $possibleLengthLocalOnly): void
{
$this->possibleLengthLocalOnly = $possibleLengthLocalOnly;
}
public function addPossibleLengthLocalOnly(int $possibleLengthLocalOnly): void
{
if (!in_array($possibleLengthLocalOnly, $this->possibleLengthLocalOnly)) {
$this->possibleLengthLocalOnly[] = $possibleLengthLocalOnly;
}
}
public function clearPossibleLengthLocalOnly(): void
{
$this->possibleLengthLocalOnly = [];
}
public function hasNationalNumberPattern(): bool
{
return $this->hasNationalNumberPattern;
}
public function getNationalNumberPattern(): string
{
return $this->nationalNumberPattern;
}
public function setNationalNumberPattern(string $value): PhoneNumberDesc
{
$this->hasNationalNumberPattern = true;
$this->nationalNumberPattern = $value;
return $this;
}
public function clearNationalNumberPattern(): PhoneNumberDesc
{
$this->hasNationalNumberPattern = false;
$this->nationalNumberPattern = '';
return $this;
}
public function hasExampleNumber(): bool
{
return $this->hasExampleNumber;
}
public function getExampleNumber(): string
{
return $this->exampleNumber;
}
public function setExampleNumber(string $value): PhoneNumberDesc
{
$this->hasExampleNumber = true;
$this->exampleNumber = $value;
return $this;
}
public function clearExampleNumber(): self
{
$this->hasExampleNumber = false;
$this->exampleNumber = '';
return $this;
}
public function mergeFrom(PhoneNumberDesc $other): self
{
if ($other->hasNationalNumberPattern()) {
$this->setNationalNumberPattern($other->getNationalNumberPattern());
}
if ($other->hasExampleNumber()) {
$this->setExampleNumber($other->getExampleNumber());
}
$this->setPossibleLength($other->getPossibleLength());
$this->setPossibleLengthLocalOnly($other->getPossibleLengthLocalOnly());
return $this;
}
public function exactlySameAs(PhoneNumberDesc $other): bool
{
return $this->nationalNumberPattern === $other->nationalNumberPattern &&
$this->exampleNumber === $other->exampleNumber;
}
/**
* @return PhoneNumberDescArray
*/
public function toArray(): array
{
$data = [];
if ($this->hasNationalNumberPattern()) {
$data['NationalNumberPattern'] = $this->getNationalNumberPattern();
}
if ($this->hasExampleNumber()) {
$data['ExampleNumber'] = $this->getExampleNumber();
}
$possibleLength = $this->getPossibleLength();
if (!empty($possibleLength)) {
$data['PossibleLength'] = $possibleLength;
}
$possibleLengthLocalOnly = $this->getPossibleLengthLocalOnly();
if (!empty($possibleLengthLocalOnly)) {
$data['PossibleLengthLocalOnly'] = $possibleLengthLocalOnly;
}
return $data;
}
/**
* @param PhoneNumberDescArray $input
* @return $this
*/
public function fromArray(array $input): static
{
if (isset($input['NationalNumberPattern']) && $input['NationalNumberPattern'] !== '') {
$this->setNationalNumberPattern($input['NationalNumberPattern']);
}
if (isset($input['ExampleNumber']) && $input['ExampleNumber'] !== '') {
$this->setExampleNumber($input['ExampleNumber']);
}
if (isset($input['PossibleLength'])) {
$this->setPossibleLength($input['PossibleLength']);
}
if (isset($input['PossibleLengthLocalOnly'])) {
$this->setPossibleLengthLocalOnly($input['PossibleLengthLocalOnly']);
}
return $this;
}
}
@@ -0,0 +1,23 @@
<?php
namespace libphonenumber;
/**
* INTERNATIONAL and NATIONAL formats are consistent with the definition in ITU-T Recommendation
* E123. For example, the number of the Google Switzerland office will be written as
* "+41 44 668 1800" in INTERNATIONAL format, and as "044 668 1800" in NATIONAL format.
* E164 format is as per INTERNATIONAL format but with no formatting applied, e.g.
* "+41446681800". RFC3966 is as per INTERNATIONAL format, but with all spaces and other
* separating symbols replaced with a hyphen, and with any phone number extension appended with
* ";ext=". It also will have a prefix of "tel:" added, e.g. "tel:+41-44-668-1800".
*
* Note: If you are considering storing the number in a neutral format, you are highly advised to
* use the PhoneNumber class.
*/
class PhoneNumberFormat
{
public const E164 = 0;
public const INTERNATIONAL = 1;
public const NATIONAL = 2;
public const RFC3966 = 3;
}
@@ -0,0 +1,76 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
class PhoneNumberMatch implements \Stringable
{
/**
* The start index into the text.
*/
private int $start;
/**
* The raw substring matched.
*/
private string $rawString;
/**
* Creates a new match
*
* @param int $start The start index into the target text
* @param string $rawString The matched substring of the target text
* @param PhoneNumber $number The matched phone number
*/
public function __construct(int $start, string $rawString, private PhoneNumber $number)
{
if ($start < 0) {
throw new \InvalidArgumentException('Start index must be >= 0.');
}
$this->start = $start;
$this->rawString = $rawString;
}
/**
* Returns the phone number matched by the receiver.
* @return PhoneNumber
*/
public function number(): PhoneNumber
{
return $this->number;
}
/**
* Returns the start index of the matched phone number within the searched text.
* @return int
*/
public function start(): int
{
return $this->start;
}
/**
* Returns the exclusive end index of the matched phone number within the searched text.
* @return int
*/
public function end(): int
{
return $this->start + \mb_strlen($this->rawString);
}
/**
* Returns the raw string matched as a phone number in the searched text.
* @return string
*/
public function rawString(): string
{
return $this->rawString;
}
public function __toString(): string
{
return "PhoneNumberMatch [{$this->start()},{$this->end()}) {$this->rawString}";
}
}
@@ -0,0 +1,71 @@
<?php
namespace libphonenumber;
/**
* Type of phone numbers.
*/
class PhoneNumberType
{
public const FIXED_LINE = 0;
public const MOBILE = 1;
// In some regions (e.g. the USA), it is impossible to distinguish between fixed-line and
// mobile numbers by looking at the phone number itself.
public const FIXED_LINE_OR_MOBILE = 2;
// Freephone lines
public const TOLL_FREE = 3;
public const PREMIUM_RATE = 4;
// The cost of this call is shared between the caller and the recipient, and is hence typically
// less than PREMIUM_RATE calls. See // http://en.wikipedia.org/wiki/Shared_Cost_Service for
// more information.
public const SHARED_COST = 5;
// Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
public const VOIP = 6;
// A personal number is associated with a particular person, and may be routed to either a
// MOBILE or FIXED_LINE number. Some more information can be found here:
// http://en.wikipedia.org/wiki/Personal_Numbers
public const PERSONAL_NUMBER = 7;
public const PAGER = 8;
// Used for "Universal Access Numbers" or "Company Numbers". They may be further routed to
// specific offices, but allow one number to be used for a company.
public const UAN = 9;
// A phone number is of type UNKNOWN when it does not fit any of the known patterns for a
// specific region.
public const UNKNOWN = 10;
// Emergency
public const EMERGENCY = 27;
// Voicemail
public const VOICEMAIL = 28;
// Short Code
public const SHORT_CODE = 29;
// Standard Rate
public const STANDARD_RATE = 30;
/**
* @return array<int,string>
*/
public static function values(): array
{
return [
self::FIXED_LINE => 'FIXED_LINE',
self::MOBILE => 'MOBILE',
self::FIXED_LINE_OR_MOBILE => 'FIXED_LINE_OR_MOBILE',
self::TOLL_FREE => 'TOLL_FREE',
self::PREMIUM_RATE => 'PREMIUM_RATE',
self::SHARED_COST => 'SHARED_COST',
self::VOIP => 'VOIP',
self::PERSONAL_NUMBER => 'PERSONAL_NUMBER',
self::PAGER => 'PAGER',
self::UAN => 'UAN',
self::UNKNOWN => 'UNKNOWN',
self::EMERGENCY => 'EMERGENCY',
self::VOICEMAIL => 'VOICEMAIL',
self::SHORT_CODE => 'SHORT_CODE',
self::STANDARD_RATE => 'STANDARD_RATE',
];
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,52 @@
<?php
declare(strict_types=1);
namespace libphonenumber;
/**
* Class RegexBasedMatcher
* @package libphonenumber
* @internal
*/
class RegexBasedMatcher implements MatcherAPIInterface
{
public static function create(): static
{
return new static();
}
// Keep PHPStan happy (Unsafe usage of new static())
final public function __construct()
{
}
/**
* Returns whether the given national number (a string containing only decimal digits) matches
* the national number pattern defined in the given {@code PhoneNumberDesc} message.
*/
public function matchNationalNumber(string $number, PhoneNumberDesc $numberDesc, bool $allowPrefixMatch): bool
{
$nationalNumberPattern = $numberDesc->getNationalNumberPattern();
// We don't want to consider it a prefix match when matching non-empty input against an empty
// pattern
if ($nationalNumberPattern === '') {
return false;
}
return $this->match($number, $nationalNumberPattern, $allowPrefixMatch);
}
private function match(string $number, string $pattern, bool $allowPrefixMatch): bool
{
$matcher = new Matcher($pattern, $number);
if (!$matcher->lookingAt()) {
return false;
}
return $matcher->matches() ? true : $allowPrefixMatch;
}
}
@@ -0,0 +1,45 @@
<?php
namespace libphonenumber;
/**
* Possible outcomes when testing if a PhoneNumber is possible.
*/
class ValidationResult
{
/**
* The number length matches that of valid numbers for this region
*/
public const IS_POSSIBLE = 0;
/**
* The number has an invalid country calling code.
*/
public const INVALID_COUNTRY_CODE = 1;
/**
* The number is shorter than all valid numbers for this region.
*/
public const TOO_SHORT = 2;
/**
* The number is longer than all valid numbers for this region.
*/
public const TOO_LONG = 3;
/**
* The number length matches that of local numbers for this region only (i.e. numbers that may
* be able to be dialled within an area, but do not have all the information to be dialled from
* anywhere inside or outside the country).
*/
public const IS_POSSIBLE_LOCAL_ONLY = 4;
/**
* The number is longer than the shortest valid numbers for this region, shorter than the
* longest valid numbers for this region, and does not itself have a number length that matches
* valid numbers for this region. This can also be returned in the case where
* isPossibleNumberForTypeWithReason was called, and there are no numbers of this type at all
* for this region.
*/
public const INVALID_LENGTH = 5;
}
@@ -0,0 +1,114 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:00|[1-9]\\d)\\d{6}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '(?:00|[1-9]\\d)\\d{6}',
'ExampleNumber' => '12345678',
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 800,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '\\d',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,114 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[1-9]\\d{7}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '[1-9]\\d{7}',
'ExampleNumber' => '12345678',
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 808,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[1-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,115 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '7\\d{11}|[35-7]\\d{8}',
'PossibleLength' =>
[
0 => 9,
1 => 12,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}',
'ExampleNumber' => '301234567',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 870,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[35-7]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,114 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '10\\d{10}',
'PossibleLength' =>
[
0 => 12,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '10\\d{10}',
'ExampleNumber' => '101234567890',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 878,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{5})(\\d{5})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,114 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[0-36-9]\\d{8}',
'PossibleLength' =>
[
0 => 9,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'NationalNumberPattern' => '[0-36-9]\\d{8}',
'ExampleNumber' => '612345678',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 881,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{5})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[0-36-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,211 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
3 => 10,
4 => 11,
5 => 12,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'NationalNumberPattern' => '342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}',
'ExampleNumber' => '3421234',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
3 => 10,
4 => 12,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}',
'ExampleNumber' => '390123456789',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'NationalNumberPattern' => '348[57]\\d{7}',
'ExampleNumber' => '34851234567',
'PossibleLength' =>
[
0 => 11,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 882,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{5})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '16|342',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '49',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1[36]|9',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '3[23]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{2})(\\d{3,4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '16',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '10|23|3(?:[15]|4[57])|4|51',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '34',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{2})(\\d{4,5})(\\d{5})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[1-35]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,166 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[1-4]\\d|51)\\d{6,10}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
2 => 10,
3 => 11,
4 => 12,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}',
'ExampleNumber' => '510012345',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 883,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{2,8})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[14]|2[24-689]|3[02-689]|51[24-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '510',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '21',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{4})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '51[13]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[235]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,113 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '\\d{11}',
'PossibleLength' =>
[
0 => 11,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '\\d{11}',
'ExampleNumber' => '12345678901',
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 888,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{5})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,122 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[1359]\\d{8}',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'mobile' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '[1359]\\d{8}',
'ExampleNumber' => '123456789',
'PossibleLengthLocalOnly' =>
[
0 => 8,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => '001',
'countryCode' => 979,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[1359]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,111 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[01589]\\d|[46])\\d{4}',
'PossibleLength' =>
[
0 => 5,
1 => 6,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '6[2-467]\\d{3}',
'ExampleNumber' => '62889',
'PossibleLength' =>
[
0 => 5,
],
],
'mobile' =>
[
'NationalNumberPattern' => '4\\d{4}',
'ExampleNumber' => '40123',
'PossibleLength' =>
[
0 => 5,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '(?:0[1-9]|[1589]\\d)\\d{4}',
'ExampleNumber' => '542011',
'PossibleLength' =>
[
0 => 6,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AC',
'countryCode' => 247,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,152 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:1|6\\d)\\d{7}|[135-9]\\d{5}',
'PossibleLength' =>
[
0 => 6,
1 => 8,
2 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '[78]\\d{5}',
'ExampleNumber' => '712345',
'PossibleLength' =>
[
0 => 6,
],
],
'mobile' =>
[
'NationalNumberPattern' => '690\\d{6}|[356]\\d{5}',
'ExampleNumber' => '312345',
'PossibleLength' =>
[
0 => 6,
1 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '180[02]\\d{4}',
'ExampleNumber' => '18001234',
'PossibleLength' =>
[
0 => 8,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '[19]\\d{5}',
'ExampleNumber' => '912345',
'PossibleLength' =>
[
0 => 6,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '1800\\d{4}',
'PossibleLength' =>
[
0 => 8,
],
],
'id' => 'AD',
'countryCode' => 376,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[135-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '6',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,173 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
5 => 10,
6 => 11,
7 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '[2-4679][2-8]\\d{6}',
'ExampleNumber' => '22345678',
'PossibleLength' =>
[
0 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '5[024-68]\\d{7}',
'ExampleNumber' => '501234567',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '400\\d{6}|800\\d{2,9}',
'ExampleNumber' => '800123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[02]\\d{5}',
'ExampleNumber' => '900234567',
'PossibleLength' =>
[
0 => 9,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '700[05]\\d{5}',
'ExampleNumber' => '700012345',
'PossibleLength' =>
[
0 => 9,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '600[25]\\d{5}',
'ExampleNumber' => '600212345',
'PossibleLength' =>
[
0 => 9,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AE',
'countryCode' => 971,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{2,9})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '60|8',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[236]|[479][2-8]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d)(\\d{5})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[479]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '5',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,153 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[2-7]\\d{8}',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}',
'ExampleNumber' => '234567890',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '7\\d{8}',
'ExampleNumber' => '701234567',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AF',
'countryCode' => 93,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[1-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2-7]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2-7]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,114 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:268|[58]\\d\\d|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}',
'ExampleNumber' => '2684601234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}',
'ExampleNumber' => '2684641234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'NationalNumberPattern' => '26848[01]\\d{4}',
'ExampleNumber' => '2684801234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'pager' =>
[
'NationalNumberPattern' => '26840[69]\\d{4}',
'ExampleNumber' => '2684061234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AG',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '([457]\\d{6})$|1',
'nationalPrefixTransformRule' => '268$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '268',
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,112 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:264|[58]\\d\\d|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '264(?:292|4(?:6[12]|9[78]))\\d{4}',
'ExampleNumber' => '2644612345',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}',
'ExampleNumber' => '2642351234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'NationalNumberPattern' => '264724\\d{4}',
'ExampleNumber' => '2647241234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AI',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '([2457]\\d{6})$|1',
'nationalPrefixTransformRule' => '264$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '264',
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,191 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}',
'ExampleNumber' => '22345678',
'PossibleLength' =>
[
0 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
1 => 6,
2 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '6(?:[78][2-9]|9\\d)\\d{6}',
'ExampleNumber' => '672123456',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{4}',
'ExampleNumber' => '8001234',
'PossibleLength' =>
[
0 => 7,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[1-9]\\d\\d',
'ExampleNumber' => '900123',
'PossibleLength' =>
[
0 => 6,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '808[1-9]\\d\\d',
'ExampleNumber' => '808123',
'PossibleLength' =>
[
0 => 6,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '700[2-9]\\d{4}',
'ExampleNumber' => '70021234',
'PossibleLength' =>
[
0 => 8,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AL',
'countryCode' => 355,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3,4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '80|9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '4[2-6]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2358][2-5]|4',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{5})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[23578]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '6',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,152 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[1-489]\\d|55|60|77)\\d{6}',
'PossibleLength' =>
[
0 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
1 => 6,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}',
'ExampleNumber' => '10123456',
'PossibleLengthLocalOnly' =>
[
0 => 5,
1 => 6,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:33|4[1349]|55|77|88|9[13-9])\\d{6}',
'ExampleNumber' => '77123456',
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{5}',
'ExampleNumber' => '80012345',
],
'premiumRate' =>
[
'NationalNumberPattern' => '90[016]\\d{5}',
'ExampleNumber' => '90012345',
],
'sharedCost' =>
[
'NationalNumberPattern' => '80[1-4]\\d{5}',
'ExampleNumber' => '80112345',
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[01])\\d{4}',
'ExampleNumber' => '60271234',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AM',
'countryCode' => 374,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[89]0',
],
'nationalPrefixFormattingRule' => '0 $1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{5})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '2|3[12]',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '1|47',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[3-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,112 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[29]\\d{8}',
'PossibleLength' =>
[
0 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}',
'ExampleNumber' => '222123456',
],
'mobile' =>
[
'NationalNumberPattern' => '9[1-59]\\d{7}',
'ExampleNumber' => '923123456',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AO',
'countryCode' => 244,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[29]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,377 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
1 => 7,
2 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '3888[013-9]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}',
'ExampleNumber' => '1123456789',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
1 => 7,
2 => 8,
],
],
'mobile' =>
[
'NationalNumberPattern' => '93(?:7(?:1[15]|81)[46]|8(?:(?:21|4[16]|69|9[12])[46]|88[013-9]))\\d{5}|9(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}',
'ExampleNumber' => '91123456789',
'PossibleLengthLocalOnly' =>
[
0 => 6,
1 => 7,
2 => 8,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{7,8}',
'ExampleNumber' => '8001234567',
],
'premiumRate' =>
[
'NationalNumberPattern' => '60[04579]\\d{7}',
'ExampleNumber' => '6001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '810\\d{7}',
'ExampleNumber' => '8101234567',
'PossibleLength' =>
[
0 => 10,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '810\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
],
'id' => 'AR',
'countryCode' => 54,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?',
'nationalPrefixTransformRule' => '9$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '0|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478])|911',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[1-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[2-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[1-8]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{4})(\\d{2})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])',
1 => '2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)',
2 => '2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]',
3 => '2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
5 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
6 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
[
0 => '[68]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '[23]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
8 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{2})(\\d{4})',
'format' => '$2 15-$3-$4',
'leadingDigitsPatterns' =>
[
0 => '9(?:2[2-469]|3[3-578])',
1 => '9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))',
2 => '9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)',
3 => '9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]',
4 => '9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
9 =>
[
'pattern' => '(\\d)(\\d{2})(\\d{4})(\\d{4})',
'format' => '$2 15-$3-$4',
'leadingDigitsPatterns' =>
[
0 => '91',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
10 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{5})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
11 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{3})(\\d{4})',
'format' => '$2 15-$3-$4',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})(\\d{2})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])',
1 => '2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)',
2 => '2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]',
3 => '2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
[
0 => '[68]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '[23]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
4 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3-$4',
'leadingDigitsPatterns' =>
[
0 => '9(?:2[2-469]|3[3-578])',
1 => '9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))',
2 => '9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)',
3 => '9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]',
4 => '9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]',
],
],
5 =>
[
'pattern' => '(\\d)(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3-$4',
'leadingDigitsPatterns' =>
[
0 => '91',
],
],
6 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{5})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3-$4',
'leadingDigitsPatterns' =>
[
0 => '9',
],
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,110 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[58]\\d\\d|684|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '6846(?:22|33|44|55|77|88|9[19])\\d{4}',
'ExampleNumber' => '6846221234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '684(?:2(?:48|5[2468]|7[26])|7(?:3[13]|70|82))\\d{4}',
'ExampleNumber' => '6847331234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AS',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '([267]\\d{6})$|1',
'nationalPrefixTransformRule' => '684$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '684',
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,353 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}',
'PossibleLength' =>
[
0 => 4,
1 => 5,
2 => 6,
3 => 7,
4 => 8,
5 => 9,
6 => 10,
7 => 11,
8 => 12,
9 => 13,
],
'PossibleLengthLocalOnly' =>
[
0 => 3,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}',
'ExampleNumber' => '1234567890',
'PossibleLengthLocalOnly' =>
[
0 => 3,
],
],
'mobile' =>
[
'NationalNumberPattern' => '6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}',
'ExampleNumber' => '664123456',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
3 => 10,
4 => 11,
5 => 12,
6 => 13,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{6,10}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 9,
1 => 10,
2 => 11,
3 => 12,
4 => 13,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}',
'ExampleNumber' => '900123456',
'PossibleLength' =>
[
0 => 9,
1 => 10,
2 => 11,
3 => 12,
4 => 13,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '8(?:10|2[018])\\d{6,10}|828\\d{5}',
'ExampleNumber' => '810123456',
'PossibleLength' =>
[
0 => 8,
1 => 9,
2 => 10,
3 => 11,
4 => 12,
5 => 13,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}',
'ExampleNumber' => '780123456',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
5 => 10,
6 => 11,
7 => 12,
8 => 13,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AT',
'countryCode' => 43,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '14',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3,12})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '1(?:11|[2-9])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{2})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '517',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{3,5})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '5[079]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{6})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '[18]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{3})(\\d{3,10})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{4})(\\d{3,9})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2-467]|5[2-6]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '5',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
8 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4,7})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '5',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{3,12})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '1(?:11|[2-9])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{2})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '517',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3,5})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '5[079]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{3,10})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{4})(\\d{3,9})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2-467]|5[2-6]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '5',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4,7})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '5',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,328 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
5 => 10,
6 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}',
'ExampleNumber' => '212345678',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 8,
],
],
'mobile' =>
[
'NationalNumberPattern' => '4(?:79[01]|83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-27-9])\\d{6}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '180(?:0\\d{3}|2)\\d{3}',
'ExampleNumber' => '1800123456',
'PossibleLength' =>
[
0 => 7,
1 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '190[0-26]\\d{6}',
'ExampleNumber' => '1900123456',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}',
'ExampleNumber' => '1300123456',
'PossibleLength' =>
[
0 => 6,
1 => 8,
2 => 10,
3 => 12,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}',
'ExampleNumber' => '147101234',
'PossibleLength' =>
[
0 => 9,
],
],
'pager' =>
[
'NationalNumberPattern' => '163\\d{2,6}',
'ExampleNumber' => '1631234',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '1(?:3(?:00\\d{5}|45[0-4])|802)\\d{3}|1[38]00\\d{6}|13\\d{4}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 10,
4 => 12,
],
],
'id' => 'AU',
'countryCode' => 61,
'internationalPrefix' => '001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
'preferredInternationalPrefix' => '0011',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '(183[12])|0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{3,4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '16',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '13',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '19',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '180',
1 => '1802',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{4})(\\d{3,4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '19',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '16',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '14|4',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2378]',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
'nationalPrefixOptionalWhenFormatting' => false,
],
8 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1(?:30|[89])',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
9 =>
[
'pattern' => '(\\d{4})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '130',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{3,4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '16',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '16',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '14|4',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2378]',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1(?:30|[89])',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => true,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,106 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[25-79]\\d\\d|800)\\d{4}',
'PossibleLength' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '5(?:2\\d|8[1-9])\\d{4}',
'ExampleNumber' => '5212345',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}',
'ExampleNumber' => '5601234',
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{4}',
'ExampleNumber' => '8001234',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900\\d{4}',
'ExampleNumber' => '9001234',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '(?:28\\d|501)\\d{4}',
'ExampleNumber' => '5011234',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AW',
'countryCode' => 297,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[25-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,131 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
5 => 10,
6 => 11,
7 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '18[1-8]\\d{3,6}',
'ExampleNumber' => '181234567',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
],
],
'mobile' =>
[
'NationalNumberPattern' => '4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
4 => 10,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{4,6}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '[67]00\\d{5,6}',
'ExampleNumber' => '600123456',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}',
'ExampleNumber' => '10112345',
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AX',
'countryCode' => 358,
'internationalPrefix' => '00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))',
'preferredInternationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '18',
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,197 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '365\\d{6}|(?:[124579]\\d|60|88)\\d{7}',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}',
'ExampleNumber' => '123123456',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}',
'ExampleNumber' => '401234567',
],
'tollFree' =>
[
'NationalNumberPattern' => '88\\d{7}',
'ExampleNumber' => '881234567',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900200\\d{3}',
'ExampleNumber' => '900200123',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'AZ',
'countryCode' => 994,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[1-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '90',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '1[28]|2|365|46',
1 => '1[28]|2|365[45]|46',
2 => '1[28]|2|365(?:4|5[02])|46',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[13-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '90',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '1[28]|2|365|46',
1 => '1[28]|2|365[45]|46',
2 => '1[28]|2|365(?:4|5[02])|46',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[13-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,210 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '6\\d{8}|(?:[35689]\\d|49|70)\\d{6}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}',
'ExampleNumber' => '30212345',
'PossibleLength' =>
[
0 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
],
],
'mobile' =>
[
'NationalNumberPattern' => '6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}',
'ExampleNumber' => '61123456',
],
'tollFree' =>
[
'NationalNumberPattern' => '8[08]\\d{6}',
'ExampleNumber' => '80123456',
'PossibleLength' =>
[
0 => 8,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '9[0246]\\d{6}',
'ExampleNumber' => '90123456',
'PossibleLength' =>
[
0 => 8,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '8[12]\\d{6}',
'ExampleNumber' => '82123456',
'PossibleLength' =>
[
0 => 8,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}',
'ExampleNumber' => '70341234',
'PossibleLength' =>
[
0 => 8,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BA',
'countryCode' => 387,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[2-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '6[1-3]|[7-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '[3-5]|6[56]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '6',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '6[1-3]|[7-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '[3-5]|6[56]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '6',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,118 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:246|[58]\\d\\d|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}',
'ExampleNumber' => '2464123456',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}',
'ExampleNumber' => '2462501234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '(?:246976|900[2-9]\\d\\d)\\d{4}',
'ExampleNumber' => '9002123456',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'NationalNumberPattern' => '24631\\d{5}',
'ExampleNumber' => '2463101234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}',
'ExampleNumber' => '2464301234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BB',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '([2-9]\\d{6})$|1',
'nationalPrefixTransformRule' => '246$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '246',
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,162 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
4 => 10,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}',
'ExampleNumber' => '27111234',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}',
'ExampleNumber' => '1812345678',
'PossibleLength' =>
[
0 => 10,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '80[03]\\d{7}',
'ExampleNumber' => '8001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}',
'ExampleNumber' => '9604123456',
'PossibleLength' =>
[
0 => 10,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BD',
'countryCode' => 880,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{4,6})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '31[5-8]|[459]1',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{3,7})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{4})(\\d{3,6})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[13-9]|22',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d)(\\d{7,8})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '2',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,167 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '4\\d{8}|[1-9]\\d{7}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}',
'ExampleNumber' => '12345678',
'PossibleLength' =>
[
0 => 8,
],
],
'mobile' =>
[
'NationalNumberPattern' => '4[5-9]\\d{7}',
'ExampleNumber' => '470123456',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800[1-9]\\d{4}',
'ExampleNumber' => '80012345',
'PossibleLength' =>
[
0 => 8,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '(?:70(?:2[0-57]|3[04-7]|44|6[569]|7[0579])|90\\d\\d)\\d{4}',
'ExampleNumber' => '90012345',
'PossibleLength' =>
[
0 => 8,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '7879\\d{4}',
'ExampleNumber' => '78791234',
'PossibleLength' =>
[
0 => 8,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '78(?:0[57]|1[014-8]|2[25]|3[15-8]|48|[56]0|7[06-8]|9\\d)\\d{4}',
'ExampleNumber' => '78102345',
'PossibleLength' =>
[
0 => 8,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BE',
'countryCode' => 32,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '(?:80|9)0',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[239]|4[23]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[15-8]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '4',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,112 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[025-7]\\d{7}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}',
'ExampleNumber' => '20491234',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:0[1-35-7]|5[1-8]|[67]\\d)\\d{6}',
'ExampleNumber' => '70123456',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BF',
'countryCode' => 226,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[025-7]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,341 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
4 => 12,
],
'PossibleLengthLocalOnly' =>
[
0 => 4,
1 => 5,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}',
'ExampleNumber' => '2123456',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 4,
1 => 5,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}',
'ExampleNumber' => '43012345',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '(?:00800\\d\\d|800)\\d{5}',
'ExampleNumber' => '80012345',
'PossibleLength' =>
[
0 => 8,
1 => 12,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '90\\d{6}',
'ExampleNumber' => '90123456',
'PossibleLength' =>
[
0 => 8,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '700\\d{5}',
'ExampleNumber' => '70012345',
'PossibleLength' =>
[
0 => 8,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BG',
'countryCode' => 359,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{6})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d)(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '2',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '43[1-6]|70[1-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '2',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2,3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '(?:70|8)0',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{2})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '43[1-7]|7',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[48]|9[08]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
8 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d)(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '2',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '43[1-6]|70[1-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '2',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2,3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '(?:70|8)0',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{2})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '43[1-7]|7',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[48]|9[08]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,106 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[136-9]\\d{7}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}',
'ExampleNumber' => '17001234',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}',
'ExampleNumber' => '36001234',
],
'tollFree' =>
[
'NationalNumberPattern' => '80\\d{6}',
'ExampleNumber' => '80123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '(?:87|9[014578])\\d{6}',
'ExampleNumber' => '90123456',
],
'sharedCost' =>
[
'NationalNumberPattern' => '84\\d{6}',
'ExampleNumber' => '84123456',
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BH',
'countryCode' => 973,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[13679]|8[047]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,112 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[267]\\d|31)\\d{6}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:22|31)\\d{6}',
'ExampleNumber' => '22201234',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:29|[67][125-9])\\d{6}',
'ExampleNumber' => '79561234',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BI',
'countryCode' => 257,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[2367]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,108 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[24-689]\\d{7}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}',
'ExampleNumber' => '20211234',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:4[0-256]|[56]\\d|9[013-9])\\d{6}',
'ExampleNumber' => '90011234',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '857[58]\\d{4}',
'ExampleNumber' => '85751234',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '81\\d{6}',
'ExampleNumber' => '81123456',
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BJ',
'countryCode' => 229,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[24-689]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,98 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '590\\d{6}|(?:69|80|9\\d)\\d{7}',
'PossibleLength' =>
[
0 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '590(?:2[7-9]|5[12]|87)\\d{4}',
'ExampleNumber' => '590271234',
],
'mobile' =>
[
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}',
'ExampleNumber' => '690001234',
],
'tollFree' =>
[
'NationalNumberPattern' => '80[0-5]\\d{6}',
'ExampleNumber' => '800012345',
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '9(?:(?:395|76[018])\\d|475[0-2])\\d{4}',
'ExampleNumber' => '976012345',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BL',
'countryCode' => 590,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,110 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:441|[58]\\d\\d|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}',
'ExampleNumber' => '4414123456',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '441(?:[2378]\\d|5[0-39]|92)\\d{5}',
'ExampleNumber' => '4413701234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BM',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '([2-9]\\d{6})$|1',
'nationalPrefixTransformRule' => '441$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '441',
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,110 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[2-578]\\d{6}',
'PossibleLength' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}',
'ExampleNumber' => '2345678',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:22[89]|[78]\\d\\d)\\d{4}',
'ExampleNumber' => '7123456',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '5[34]\\d{5}',
'ExampleNumber' => '5345678',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BN',
'countryCode' => 673,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2-578]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,158 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[2-467]\\d\\d|8001)\\d{5}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}',
'ExampleNumber' => '22123456',
'PossibleLength' =>
[
0 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '[67]\\d{7}',
'ExampleNumber' => '71234567',
'PossibleLength' =>
[
0 => 8,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8001[07]\\d{4}',
'ExampleNumber' => '800171234',
'PossibleLength' =>
[
0 => 9,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '8001[07]\\d{4}',
'PossibleLength' =>
[
0 => 9,
],
],
'id' => 'BO',
'countryCode' => 591,
'internationalPrefix' => '00(?:1\\d)?',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0(1\\d)?',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[23]|4[46]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{8})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '[67]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,101 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[34]1|7\\d)\\d{5}',
'PossibleLength' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}',
'ExampleNumber' => '7151234',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}',
'ExampleNumber' => '3181234',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BQ',
'countryCode' => 599,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '[347]',
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,274 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
2 => 10,
3 => 11,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}',
'ExampleNumber' => '1123456789',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 8,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}',
'ExampleNumber' => '11961234567',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
'PossibleLengthLocalOnly' =>
[
0 => 8,
1 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{6,7}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 9,
1 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '300\\d{6}|[59]00\\d{6,7}',
'ExampleNumber' => '300123456',
'PossibleLength' =>
[
0 => 9,
1 => 10,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370))\\d{4}|300\\d{5}',
'ExampleNumber' => '40041234',
'PossibleLength' =>
[
0 => 8,
1 => 10,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '30(?:0\\d{5,7}|3\\d{7})|40(?:0\\d|20)\\d{4}|800\\d{6,7}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
2 => 10,
],
],
'id' => 'BR',
'countryCode' => 55,
'internationalPrefix' => '00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?',
'nationalPrefixTransformRule' => '$2',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3,6})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '300|4(?:0[02]|37)',
1 => '4(?:02|37)0|[34]00',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[2-57]',
1 => '[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{2,3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '(?:[358]|90)0',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{5})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '0 $CC ($1)',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{2})(\\d{5})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '[16][1-9]|[2-57-9]',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '0 $CC ($1)',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '300|4(?:0[02]|37)',
1 => '4(?:02|37)0|[34]00',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{2,3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '(?:[358]|90)0',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '0 $CC ($1)',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{5})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '[16][1-9]|[2-57-9]',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '0 $CC ($1)',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,112 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:242|[58]\\d\\d|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}',
'ExampleNumber' => '2423456789',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}',
'ExampleNumber' => '2423591234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '242225\\d{4}',
'ExampleNumber' => '2422250123',
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BS',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '([3-8]\\d{6})$|1',
'nationalPrefixTransformRule' => '242$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '242',
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,180 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[17]\\d{7}|[2-8]\\d{6}',
'PossibleLength' =>
[
0 => 7,
1 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}',
'ExampleNumber' => '2345678',
'PossibleLength' =>
[
0 => 7,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:1[67]|77)\\d{6}',
'ExampleNumber' => '17123456',
'PossibleLength' =>
[
0 => 8,
],
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BT',
'countryCode' => 975,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2-7]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2-68]|7[246]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '1[67]|7',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2-68]|7[246]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '1[67]|7',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,176 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 10,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}',
'ExampleNumber' => '2401234',
'PossibleLength' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:321|7(?:[1-7]\\d|8[0-4]))\\d{5}',
'ExampleNumber' => '71123456',
'PossibleLength' =>
[
0 => 8,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '(?:0800|800\\d)\\d{6}',
'ExampleNumber' => '0800012345',
'PossibleLength' =>
[
0 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '90\\d{5}',
'ExampleNumber' => '9012345',
'PossibleLength' =>
[
0 => 7,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '79(?:1(?:[01]\\d|2[0-7])|2[0-7]\\d)\\d{3}',
'ExampleNumber' => '79101234',
'PossibleLength' =>
[
0 => 8,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BW',
'countryCode' => 267,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{5})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '90',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[24-6]|3[15-79]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[37]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '0',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,198 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
4 => 10,
5 => 11,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}',
'ExampleNumber' => '152450911',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
1 => 6,
2 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}',
'ExampleNumber' => '294911911',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}',
'ExampleNumber' => '8011234567',
],
'premiumRate' =>
[
'NationalNumberPattern' => '(?:810|902)\\d{7}',
'ExampleNumber' => '9021234567',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '249\\d{6}',
'ExampleNumber' => '249123456',
'PossibleLength' =>
[
0 => 9,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '800\\d{3,7}|(?:8(?:0[13]|10|20\\d)|902)\\d{7}',
],
'id' => 'BY',
'countryCode' => 375,
'internationalPrefix' => '810',
'preferredInternationalPrefix' => '8~10',
'nationalPrefix' => '8',
'nationalPrefixForParsing' => '0|80?',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '800',
],
'nationalPrefixFormattingRule' => '8 $1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '800',
],
'nationalPrefixFormattingRule' => '8 $1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{4})(\\d{2})(\\d{3})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])',
1 => '1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])',
],
'nationalPrefixFormattingRule' => '8 0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2-$3-$4',
'leadingDigitsPatterns' =>
[
0 => '1(?:[56]|7[467])|2[1-3]',
],
'nationalPrefixFormattingRule' => '8 0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2-$3-$4',
'leadingDigitsPatterns' =>
[
0 => '[1-4]',
],
'nationalPrefixFormattingRule' => '8 0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{3})(\\d{3,4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[89]',
],
'nationalPrefixFormattingRule' => '8 $1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,135 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:0800\\d|[2-8])\\d{6}',
'PossibleLength' =>
[
0 => 7,
1 => 11,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}',
'ExampleNumber' => '2221234',
'PossibleLength' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '6[0-35-7]\\d{5}',
'ExampleNumber' => '6221234',
'PossibleLength' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '0800\\d{7}',
'ExampleNumber' => '08001234123',
'PossibleLength' =>
[
0 => 11,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'BZ',
'countryCode' => 501,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[2-8]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{4})(\\d{3})',
'format' => '$1-$2-$3-$4',
'leadingDigitsPatterns' =>
[
0 => '0',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,129 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[2-8]\\d|90)\\d{8}|3\\d{6}',
'PossibleLength' =>
[
0 => 7,
1 => 10,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'ExampleNumber' => '5062345678',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'ExampleNumber' => '5062345678',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
'PossibleLength' =>
[
0 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
'PossibleLength' =>
[
0 => 10,
],
],
'voip' =>
[
'NationalNumberPattern' => '600[2-9]\\d{6}',
'ExampleNumber' => '6002012345',
'PossibleLength' =>
[
0 => 10,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '310\\d{4}',
'ExampleNumber' => '3101234',
'PossibleLength' =>
[
0 => 7,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CA',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '1',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,133 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
4 => 10,
5 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}',
'ExampleNumber' => '891621234',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 8,
],
],
'mobile' =>
[
'NationalNumberPattern' => '4(?:79[01]|83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-27-9])\\d{6}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '180(?:0\\d{3}|2)\\d{3}',
'ExampleNumber' => '1800123456',
'PossibleLength' =>
[
0 => 7,
1 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '190[0-26]\\d{6}',
'ExampleNumber' => '1900123456',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}',
'ExampleNumber' => '1300123456',
'PossibleLength' =>
[
0 => 6,
1 => 8,
2 => 10,
3 => 12,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}',
'ExampleNumber' => '147101234',
'PossibleLength' =>
[
0 => 9,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CC',
'countryCode' => 61,
'internationalPrefix' => '001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
'preferredInternationalPrefix' => '0011',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '([59]\\d{7})$|0',
'nationalPrefixTransformRule' => '8$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,151 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[189]\\d{8}|[1-68]\\d{6}',
'PossibleLength' =>
[
0 => 7,
1 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '12\\d{7}|[1-6]\\d{6}',
'ExampleNumber' => '1234567',
],
'mobile' =>
[
'NationalNumberPattern' => '88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}',
'ExampleNumber' => '991234567',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CD',
'countryCode' => 243,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '88',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{5})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[1-6]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[89]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,110 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[27]\\d{3}|8776)\\d{4}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2[12]\\d{6}',
'ExampleNumber' => '21612345',
],
'mobile' =>
[
'NationalNumberPattern' => '7[024-7]\\d{6}',
'ExampleNumber' => '70012345',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '8776\\d{4}',
'ExampleNumber' => '87761234',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CF',
'countryCode' => 236,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[278]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,122 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '222\\d{6}|(?:0\\d|80)\\d{7}',
'PossibleLength' =>
[
0 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '222[1-589]\\d{5}',
'ExampleNumber' => '222123456',
],
'mobile' =>
[
'NationalNumberPattern' => '026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}',
'ExampleNumber' => '061234567',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '80[0-2]\\d{6}',
'ExampleNumber' => '800123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CG',
'countryCode' => 242,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[02]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,161 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '8\\d{11}|[2-9]\\d{8}',
'PossibleLength' =>
[
0 => 9,
1 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}',
'ExampleNumber' => '212345678',
'PossibleLength' =>
[
0 => 9,
],
],
'mobile' =>
[
'NationalNumberPattern' => '7[35-9]\\d{7}',
'ExampleNumber' => '781234567',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{6}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 9,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '90[016]\\d{6}',
'ExampleNumber' => '900123456',
'PossibleLength' =>
[
0 => 9,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '84[0248]\\d{6}',
'ExampleNumber' => '840123456',
'PossibleLength' =>
[
0 => 9,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '878\\d{6}',
'ExampleNumber' => '878123456',
'PossibleLength' =>
[
0 => 9,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'NationalNumberPattern' => '74[0248]\\d{6}',
'ExampleNumber' => '740123456',
'PossibleLength' =>
[
0 => 9,
],
],
'uan' =>
[
'NationalNumberPattern' => '5[18]\\d{7}',
'ExampleNumber' => '581234567',
'PossibleLength' =>
[
0 => 9,
],
],
'voicemail' =>
[
'NationalNumberPattern' => '860\\d{9}',
'ExampleNumber' => '860123456789',
'PossibleLength' =>
[
0 => 12,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CH',
'countryCode' => 41,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '8[047]|90',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[2-79]|81',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4 $5',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,124 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[02]\\d{9}',
'PossibleLength' =>
[
0 => 10,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}',
'ExampleNumber' => '2123456789',
],
'mobile' =>
[
'NationalNumberPattern' => '0[157]\\d{8}',
'ExampleNumber' => '0123456789',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CI',
'countryCode' => 225,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d)(\\d{5})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '2',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '0',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,112 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[2-578]\\d{4}',
'PossibleLength' =>
[
0 => 5,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2\\d|3[13-7]|4[1-5])\\d{3}',
'ExampleNumber' => '21234',
],
'mobile' =>
[
'NationalNumberPattern' => '[578]\\d{4}',
'ExampleNumber' => '71234',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CK',
'countryCode' => 682,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{3})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2-578]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,329 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}',
'PossibleLength' =>
[
0 => 9,
1 => 10,
2 => 11,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '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}',
'ExampleNumber' => '221234567',
'PossibleLength' =>
[
0 => 9,
],
],
'mobile' =>
[
'NationalNumberPattern' => '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}',
'ExampleNumber' => '221234567',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '(?:123|8)00\\d{6}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 9,
1 => 11,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '600\\d{7,8}',
'ExampleNumber' => '6001234567',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '44\\d{7}',
'ExampleNumber' => '441234567',
'PossibleLength' =>
[
0 => 9,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '600\\d{7,8}',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
],
'id' => 'CL',
'countryCode' => 56,
'internationalPrefix' => '(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '1(?:[03-589]|21)|[29]0|78',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{5})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '219',
1 => '2196',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '44',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '2[1-36]',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '9[2-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '60|8',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
8 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '60',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{5})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '219',
1 => '2196',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '44',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '2[1-36]',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '9[2-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '60|8',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '60',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,131 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[26]\\d{8}|88\\d{6,7}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2(?:22|33)\\d{6}',
'ExampleNumber' => '222123456',
'PossibleLength' =>
[
0 => 9,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:24[23]|6[25-9]\\d)\\d{6}',
'ExampleNumber' => '671234567',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '88\\d{6,7}',
'ExampleNumber' => '88012345',
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CM',
'countryCode' => 237,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '88',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4 $5',
'leadingDigitsPatterns' =>
[
0 => '[26]|88',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,459 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
3 => 10,
4 => 11,
5 => 12,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
1 => 6,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))',
'ExampleNumber' => '1012345678',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
3 => 10,
4 => 11,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
1 => 6,
],
],
'mobile' =>
[
'NationalNumberPattern' => '1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}',
'ExampleNumber' => '13123456789',
'PossibleLength' =>
[
0 => 11,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '(?:(?:10|21)8|8)00\\d{7}',
'ExampleNumber' => '8001234567',
'PossibleLength' =>
[
0 => 10,
1 => 12,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '16[08]\\d{5}',
'ExampleNumber' => '16812345',
'PossibleLength' =>
[
0 => 8,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}',
'ExampleNumber' => '4001234567',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
3 => 10,
4 => 11,
],
'PossibleLengthLocalOnly' =>
[
0 => 5,
1 => 6,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}',
'PossibleLength' =>
[
0 => 10,
1 => 11,
2 => 12,
],
],
'id' => 'CN',
'countryCode' => 86,
'internationalPrefix' => '00|1(?:[12]\\d|79)\\d\\d00',
'preferredInternationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '(1(?:[12]\\d|79)\\d\\d)|0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{5,6})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '10|96',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{5,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '(?:10|2[0-57-9])[19]',
1 => '(?:10|2[0-57-9])(?:10|9[56])',
2 => '10(?:10|9[56])|2[0-57-9](?:100|9[56])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[1-9]',
1 => '1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])',
2 => '1(?:0(?:[0-8]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])|6)|[3-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '16[08]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{3})(\\d{5,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]',
1 => '(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]',
2 => '85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])',
3 => '85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[1-9]',
1 => '1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[0-8]|9[0-47-9])|6)|[3-9]',
2 => '1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|26|3(?:[0268]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|8[1-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23][0-8])|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:33|85[23]9)[0-46-9]|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[0-8]|9[0-47-9])',
3 => '1(?:0[02-8]|[1-9])|2(?:[0-57-9][0-8]|6)|3(?:[0268]|3[0-46-9]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23](?:[02-8]|1[1-9]|9[0-46-9]))|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:10|2[0-57-9])9[0-47-9]|(?:101|58|85[23]10)[1-9]|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '(?:4|80)0',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '10|2(?:[02-57-9]|1[1-9])',
1 => '10|2(?:[02-57-9]|1[1-9])',
2 => '10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
8 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
9 =>
[
'pattern' => '(\\d{3})(\\d{7,8})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
10 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '80',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
11 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[3-578]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
12 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1[3-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
13 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[12]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{5,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '(?:10|2[0-57-9])[19]',
1 => '(?:10|2[0-57-9])(?:10|9[56])',
2 => '10(?:10|9[56])|2[0-57-9](?:100|9[56])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{5,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]',
1 => '(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]',
2 => '85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])',
3 => '85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '(?:4|80)0',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '10|2(?:[02-57-9]|1[1-9])',
1 => '10|2(?:[02-57-9]|1[1-9])',
2 => '10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
4 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
5 =>
[
'pattern' => '(\\d{3})(\\d{7,8})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '80',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
7 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[3-578]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
8 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1[3-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
9 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[12]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => true,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,195 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60[124-8][2-9]\\d{6}',
'ExampleNumber' => '6012345678',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}',
'ExampleNumber' => '3211234567',
'PossibleLength' =>
[
0 => 10,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '1800\\d{7}',
'ExampleNumber' => '18001234567',
'PossibleLength' =>
[
0 => 11,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '19(?:0[01]|4[78])\\d{7}',
'ExampleNumber' => '19001234567',
'PossibleLength' =>
[
0 => 11,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CO',
'countryCode' => 57,
'internationalPrefix' => '00(?:4(?:[14]4|56)|[579])',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0(4(?:[14]4|56)|[579])?',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '6',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '3[0-357]|91',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{7})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '6',
],
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '3[0-357]|91',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '0$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{7})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,140 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}',
'PossibleLength' =>
[
0 => 8,
1 => 10,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}',
'ExampleNumber' => '22123456',
'PossibleLength' =>
[
0 => 8,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}',
'ExampleNumber' => '83123456',
'PossibleLength' =>
[
0 => 8,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{7}',
'ExampleNumber' => '8001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '90[059]\\d{7}',
'ExampleNumber' => '9001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '(?:210[0-6]|4\\d{3}|5100)\\d{4}',
'ExampleNumber' => '40001234',
'PossibleLength' =>
[
0 => 8,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CR',
'countryCode' => 506,
'internationalPrefix' => '00',
'nationalPrefixForParsing' => '(19(?:0[0-2468]|1[09]|20|66|77|99))',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2-7]|8[3-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
[
0 => '[89]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,171 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 4,
1 => 5,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:3[23]|48)\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}',
'ExampleNumber' => '71234567',
'PossibleLengthLocalOnly' =>
[
0 => 4,
1 => 5,
],
],
'mobile' =>
[
'NationalNumberPattern' => '5\\d{7}',
'ExampleNumber' => '51234567',
'PossibleLength' =>
[
0 => 8,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{7}',
'ExampleNumber' => '8001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '807\\d{7}',
'ExampleNumber' => '8071234567',
'PossibleLength' =>
[
0 => 10,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CU',
'countryCode' => 53,
'internationalPrefix' => '119',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{4,6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '2[1-4]|[34]',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{6,7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '7',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d)(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '5',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,108 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[2-59]\\d\\d|800)\\d{4}',
'PossibleLength' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}',
'ExampleNumber' => '2211234',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:36|5[1-389]|9\\d)\\d{5}',
'ExampleNumber' => '9911234',
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{4}',
'ExampleNumber' => '8001234',
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '(?:3[3-5]|4[356])\\d{5}',
'ExampleNumber' => '3401234',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CV',
'countryCode' => 238,
'internationalPrefix' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2-589]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,130 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}',
'PossibleLength' =>
[
0 => 7,
1 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}',
'ExampleNumber' => '94351234',
],
'mobile' =>
[
'NationalNumberPattern' => '953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}',
'ExampleNumber' => '95181234',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '60[0-2]\\d{4}',
'ExampleNumber' => '6001234',
'PossibleLength' =>
[
0 => 7,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'NationalNumberPattern' => '955\\d{5}',
'ExampleNumber' => '95581234',
'PossibleLength' =>
[
0 => 8,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CW',
'countryCode' => 599,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[3467]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '9[4-8]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => true,
'leadingDigits' => '[69]',
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,133 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
4 => 10,
5 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}',
'ExampleNumber' => '891641234',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 8,
],
],
'mobile' =>
[
'NationalNumberPattern' => '4(?:79[01]|83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-27-9])\\d{6}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '180(?:0\\d{3}|2)\\d{3}',
'ExampleNumber' => '1800123456',
'PossibleLength' =>
[
0 => 7,
1 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '190[0-26]\\d{6}',
'ExampleNumber' => '1900123456',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}',
'ExampleNumber' => '1300123456',
'PossibleLength' =>
[
0 => 6,
1 => 8,
2 => 10,
3 => 12,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}',
'ExampleNumber' => '147101234',
'PossibleLength' =>
[
0 => 9,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CX',
'countryCode' => 61,
'internationalPrefix' => '001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
'preferredInternationalPrefix' => '0011',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '([59]\\d{7})$|0',
'nationalPrefixTransformRule' => '8$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,102 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[279]\\d|[58]0)\\d{6}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2[2-6]\\d{6}',
'ExampleNumber' => '22345678',
],
'mobile' =>
[
'NationalNumberPattern' => '9(?:10|[4-79]\\d)\\d{5}',
'ExampleNumber' => '96123456',
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{5}',
'ExampleNumber' => '80001234',
],
'premiumRate' =>
[
'NationalNumberPattern' => '90[09]\\d{5}',
'ExampleNumber' => '90012345',
],
'sharedCost' =>
[
'NationalNumberPattern' => '80[1-9]\\d{5}',
'ExampleNumber' => '80112345',
],
'personalNumber' =>
[
'NationalNumberPattern' => '700\\d{5}',
'ExampleNumber' => '70012345',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '(?:50|77)\\d{6}',
'ExampleNumber' => '77123456',
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CY',
'countryCode' => 357,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[257-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,169 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}',
'PossibleLength' =>
[
0 => 9,
1 => 10,
2 => 11,
3 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}',
'ExampleNumber' => '212345678',
'PossibleLength' =>
[
0 => 9,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}',
'ExampleNumber' => '601123456',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{6}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 9,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '9(?:0[05689]|76)\\d{6}',
'ExampleNumber' => '900123456',
'PossibleLength' =>
[
0 => 9,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '8[134]\\d{7}',
'ExampleNumber' => '811234567',
'PossibleLength' =>
[
0 => 9,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '70[01]\\d{6}',
'ExampleNumber' => '700123456',
'PossibleLength' =>
[
0 => 9,
],
],
'voip' =>
[
'NationalNumberPattern' => '9[17]0\\d{6}',
'ExampleNumber' => '910123456',
'PossibleLength' =>
[
0 => 9,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '9(?:5\\d|7[2-4])\\d{6}',
'ExampleNumber' => '972123456',
'PossibleLength' =>
[
0 => 9,
],
],
'voicemail' =>
[
'NationalNumberPattern' => '9(?:3\\d{9}|6\\d{7,10})',
'ExampleNumber' => '93123456789',
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'CZ',
'countryCode' => 420,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[2-8]|9[015-7]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '96',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,407 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}',
'PossibleLength' =>
[
0 => 4,
1 => 5,
2 => 6,
3 => 7,
4 => 8,
5 => 9,
6 => 10,
7 => 11,
8 => 12,
9 => 13,
10 => 14,
11 => 15,
],
'PossibleLengthLocalOnly' =>
[
0 => 2,
1 => 3,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}',
'ExampleNumber' => '30123456',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
5 => 10,
6 => 11,
7 => 12,
8 => 13,
9 => 14,
10 => 15,
],
'PossibleLengthLocalOnly' =>
[
0 => 2,
1 => 3,
2 => 4,
],
],
'mobile' =>
[
'NationalNumberPattern' => '15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}',
'ExampleNumber' => '15123456789',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{7,12}',
'ExampleNumber' => '8001234567890',
'PossibleLength' =>
[
0 => 10,
1 => 11,
2 => 12,
3 => 13,
4 => 14,
5 => 15,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '(?:137[7-9]|900(?:[135]|9\\d))\\d{6}',
'ExampleNumber' => '9001234567',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}',
'ExampleNumber' => '18012345',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
3 => 10,
4 => 11,
5 => 12,
6 => 13,
7 => 14,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '700\\d{8}',
'ExampleNumber' => '70012345678',
'PossibleLength' =>
[
0 => 11,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'NationalNumberPattern' => '16(?:4\\d{1,10}|[89]\\d{1,11})',
'ExampleNumber' => '16412345',
'PossibleLength' =>
[
0 => 4,
1 => 5,
2 => 6,
3 => 7,
4 => 8,
5 => 9,
6 => 10,
7 => 11,
8 => 12,
9 => 13,
10 => 14,
],
],
'uan' =>
[
'NationalNumberPattern' => '18(?:1\\d{5,11}|[2-9]\\d{8})',
'ExampleNumber' => '18500123456',
'PossibleLength' =>
[
0 => 8,
1 => 9,
2 => 10,
3 => 11,
4 => 12,
5 => 13,
6 => 14,
],
],
'voicemail' =>
[
'NationalNumberPattern' => '1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}',
'ExampleNumber' => '177991234567',
'PossibleLength' =>
[
0 => 12,
1 => 13,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'DE',
'countryCode' => 49,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{3,13})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '3[02]|40|[68]9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{3,12})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1',
1 => '2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{4})(\\d{2,11})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]',
1 => '[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '138',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{5})(\\d{2,10})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '3',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{3})(\\d{5,11})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '181',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
[
'pattern' => '(\\d{3})(\\d)(\\d{4,10})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1(?:3|80)|9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
[
'pattern' => '(\\d{3})(\\d{7,8})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '1[67]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
8 =>
[
'pattern' => '(\\d{3})(\\d{7,12})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
9 =>
[
'pattern' => '(\\d{5})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '185',
1 => '1850',
2 => '18500',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
10 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '7',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
11 =>
[
'pattern' => '(\\d{4})(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '18[68]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
12 =>
[
'pattern' => '(\\d{5})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '15[0568]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
13 =>
[
'pattern' => '(\\d{4})(\\d{7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '15[1279]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
14 =>
[
'pattern' => '(\\d{3})(\\d{8})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '18',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
15 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{7,8})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1(?:6[023]|7)',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
16 =>
[
'pattern' => '(\\d{4})(\\d{2})(\\d{7})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '15[279]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
17 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{8})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '15',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,112 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:2\\d|77)\\d{6}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '2(?:1[2-5]|7[45])\\d{5}',
'ExampleNumber' => '21360003',
],
'mobile' =>
[
'NationalNumberPattern' => '77\\d{6}',
'ExampleNumber' => '77831001',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'DJ',
'countryCode' => 253,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[27]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,108 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[2-9]\\d{7}',
'PossibleLength' =>
[
0 => 8,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}',
'ExampleNumber' => '32123456',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}',
'ExampleNumber' => '32123456',
],
'tollFree' =>
[
'NationalNumberPattern' => '80\\d{6}',
'ExampleNumber' => '80123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '90\\d{6}',
'ExampleNumber' => '90123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'DK',
'countryCode' => 45,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[2-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,110 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[58]\\d\\d|767|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}',
'ExampleNumber' => '7674201234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}',
'ExampleNumber' => '7672251234',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00|33|44|55|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '8002123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'DM',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '([2-7]\\d{6})$|1',
'nationalPrefixTransformRule' => '767$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '767',
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,109 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[58]\\d\\d|900)\\d{7}',
'PossibleLength' =>
[
0 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}',
'ExampleNumber' => '8092345678',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '8[024]9[2-9]\\d{6}',
'ExampleNumber' => '8092345678',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}',
'ExampleNumber' => '8002123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '900[2-9]\\d{6}',
'ExampleNumber' => '9002123456',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}',
'ExampleNumber' => '5002345678',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'DO',
'countryCode' => 1,
'internationalPrefix' => '011',
'nationalPrefix' => '1',
'nationalPrefixForParsing' => '1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '8001|8[024]9',
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,151 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[1-4]|[5-79]\\d|80)\\d{7}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}',
'ExampleNumber' => '12345678',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}',
'ExampleNumber' => '551234567',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{6}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 9,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '80[3-689]1\\d{5}',
'ExampleNumber' => '808123456',
'PossibleLength' =>
[
0 => 9,
],
],
'sharedCost' =>
[
'NationalNumberPattern' => '80[12]1\\d{5}',
'ExampleNumber' => '801123456',
'PossibleLength' =>
[
0 => 9,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '98[23]\\d{6}',
'ExampleNumber' => '983123456',
'PossibleLength' =>
[
0 => 9,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'DZ',
'countryCode' => 213,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[1-4]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[5-8]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,210 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
2 => 10,
3 => 11,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '[2-7][2-7]\\d{6}',
'ExampleNumber' => '22123456',
'PossibleLength' =>
[
0 => 8,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}',
'ExampleNumber' => '991234567',
'PossibleLength' =>
[
0 => 9,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '1800\\d{7}|1[78]00\\d{6}',
'ExampleNumber' => '18001234567',
'PossibleLength' =>
[
0 => 10,
1 => 11,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '[2-7]890\\d{4}',
'ExampleNumber' => '28901234',
'PossibleLength' =>
[
0 => 8,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'EC',
'countryCode' => 593,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '[2-7]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{4})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
[
0 => '[2-7]',
],
'nationalPrefixFormattingRule' => '(0$1)',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{4})',
'format' => '$1-$2-$3',
'leadingDigitsPatterns' =>
[
0 => '[2-7]',
],
],
1 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '1',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,165 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 10,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}',
'ExampleNumber' => '3212345',
'PossibleLength' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[3679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}',
'ExampleNumber' => '51234567',
'PossibleLength' =>
[
0 => 7,
1 => 8,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}',
'ExampleNumber' => '80012345',
],
'premiumRate' =>
[
'NationalNumberPattern' => '(?:40\\d\\d|900)\\d{4}',
'ExampleNumber' => '9001234',
'PossibleLength' =>
[
0 => 7,
1 => 8,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'NationalNumberPattern' => '70[0-2]\\d{5}',
'ExampleNumber' => '70012345',
'PossibleLength' =>
[
0 => 8,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '800[2-9]\\d{3}',
'PossibleLength' =>
[
0 => 7,
],
],
'id' => 'EE',
'countryCode' => 372,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88',
1 => '[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{4})(\\d{3,4})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[45]|8(?:00|[1-49])',
1 => '[45]|8(?:00[1-9]|[1-49])',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '7',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '8',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,163 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}',
'PossibleLength' =>
[
0 => 8,
1 => 9,
2 => 10,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
1 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}',
'ExampleNumber' => '234567890',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
1 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '1[0-25]\\d{8}',
'ExampleNumber' => '1001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{7}',
'ExampleNumber' => '8001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '900\\d{7}',
'ExampleNumber' => '9001234567',
'PossibleLength' =>
[
0 => 10,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'EG',
'countryCode' => 20,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{7,8})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[23]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{2})(\\d{6,7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '1[35]|[4-6]|8[2468]|9[235-7]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[189]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,97 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[5-8]\\d{8}',
'PossibleLength' =>
[
0 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '528[89]\\d{5}',
'ExampleNumber' => '528812345',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}',
'ExampleNumber' => '650123456',
],
'tollFree' =>
[
'NationalNumberPattern' => '80\\d{7}',
'ExampleNumber' => '801234567',
],
'premiumRate' =>
[
'NationalNumberPattern' => '89\\d{7}',
'ExampleNumber' => '891234567',
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'NationalNumberPattern' => '592(?:4[0-2]|93)\\d{4}',
'ExampleNumber' => '592401234',
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'EH',
'countryCode' => 212,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
],
'mainCountryForCode' => false,
'leadingDigits' => '528[89]',
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,122 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[178]\\d{6}',
'PossibleLength' =>
[
0 => 7,
],
'PossibleLengthLocalOnly' =>
[
0 => 6,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}',
'ExampleNumber' => '8370362',
'PossibleLengthLocalOnly' =>
[
0 => 6,
],
],
'mobile' =>
[
'NationalNumberPattern' => '(?:17[1-3]|7\\d\\d)\\d{4}',
'ExampleNumber' => '7123456',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'ER',
'countryCode' => 291,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[178]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,165 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[5-9]\\d{8}',
'PossibleLength' =>
[
0 => 9,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}',
'ExampleNumber' => '810123456',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}',
'ExampleNumber' => '612345678',
],
'tollFree' =>
[
'NationalNumberPattern' => '[89]00\\d{6}',
'ExampleNumber' => '800123456',
],
'premiumRate' =>
[
'NationalNumberPattern' => '80[367]\\d{6}',
'ExampleNumber' => '803123456',
],
'sharedCost' =>
[
'NationalNumberPattern' => '90[12]\\d{6}',
'ExampleNumber' => '901123456',
],
'personalNumber' =>
[
'NationalNumberPattern' => '70\\d{7}',
'ExampleNumber' => '701234567',
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '51\\d{7}',
'ExampleNumber' => '511234567',
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'ES',
'countryCode' => 34,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{4})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '905',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{6})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '[79]9',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[89]00',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[5-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[89]00',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
[
0 => '[5-9]',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => true,
];
@@ -0,0 +1,122 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:11|[2-579]\\d)\\d{7}',
'PossibleLength' =>
[
0 => 9,
],
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[578]|2[69]|39|4[5-7]|5[0-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}',
'ExampleNumber' => '111112345',
'PossibleLengthLocalOnly' =>
[
0 => 7,
],
],
'mobile' =>
[
'NationalNumberPattern' => '7001\\d{5}|(?:7(?:0[1-9]|1[0-8]|22|77|86|99)|9\\d\\d)\\d{6}',
'ExampleNumber' => '911234567',
],
'tollFree' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'premiumRate' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'id' => 'ET',
'countryCode' => 251,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[1-579]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => false,
'mobileNumberPortableRegion' => false,
];
@@ -0,0 +1,252 @@
<?php
/**
* libphonenumber-for-php-lite data file
* This file has been @generated from libphonenumber data
* Do not modify!
* @internal
*/
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
5 => 10,
6 => 11,
7 => 12,
],
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}',
'ExampleNumber' => '131234567',
'PossibleLength' =>
[
0 => 5,
1 => 6,
2 => 7,
3 => 8,
4 => 9,
],
],
'mobile' =>
[
'NationalNumberPattern' => '4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
0 => 6,
1 => 7,
2 => 8,
3 => 9,
4 => 10,
],
],
'tollFree' =>
[
'NationalNumberPattern' => '800\\d{4,6}',
'ExampleNumber' => '800123456',
'PossibleLength' =>
[
0 => 7,
1 => 8,
2 => 9,
],
],
'premiumRate' =>
[
'NationalNumberPattern' => '[67]00\\d{5,6}',
'ExampleNumber' => '600123456',
'PossibleLength' =>
[
0 => 8,
1 => 9,
],
],
'sharedCost' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'personalNumber' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'voip' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'pager' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'uan' =>
[
'NationalNumberPattern' => '20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}',
'ExampleNumber' => '10112345',
],
'voicemail' =>
[
'PossibleLength' =>
[
0 => -1,
],
],
'noInternationalDialling' =>
[
'NationalNumberPattern' => '20(?:2[023]|9[89])\\d{1,6}|(?:60[12]\\d|7099)\\d{4,5}|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:[1-3]00|7(?:0[1-5]\\d\\d|5[03-9]))\\d{3,7}',
],
'id' => 'FI',
'countryCode' => 358,
'internationalPrefix' => '00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))',
'preferredInternationalPrefix' => '00',
'nationalPrefix' => '0',
'nationalPrefixForParsing' => '0',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{5})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '75[12]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d)(\\d{4,9})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2568][1-8]|3(?:0[1-9]|[1-9])|9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{6})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '11',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{3})(\\d{3,7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[12]00|[368]|70[07-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
[
'pattern' => '(\\d{2})(\\d{4,8})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[1245]|7[135]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
[
'pattern' => '(\\d{2})(\\d{6,10})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '7',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'intlNumberFormat' =>
[
0 =>
[
'pattern' => '(\\d)(\\d{4,9})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[2568][1-8]|3(?:0[1-9]|[1-9])|9',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{3,7})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[12]00|[368]|70[07-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{4,8})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '[1245]|7[135]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
[
'pattern' => '(\\d{2})(\\d{6,10})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
[
0 => '7',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
],
'mainCountryForCode' => true,
'leadingDigits' => '1[03-79]|[2-9]',
'mobileNumberPortableRegion' => true,
];

Some files were not shown because too many files have changed in this diff Show More