Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit 0c042db

Browse files
authored
Add all Iran's provinces land lines numbers
Add all of Iran's provinces land lines number formats separated by province name.
1 parent 242591b commit 0c042db

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

src/Faker/Provider/fa_IR/PhoneNumber.php

+35-6
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,40 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
77
/**
88
* @link https://fa.wikipedia.org/wiki/%D8%B4%D9%85%D8%A7%D8%B1%D9%87%E2%80%8C%D9%87%D8%A7%DB%8C_%D8%AA%D9%84%D9%81%D9%86_%D8%AF%D8%B1_%D8%A7%DB%8C%D8%B1%D8%A7%D9%86#.D8.AA.D9.84.D9.81.D9.86.E2.80.8C.D9.87.D8.A7.DB.8C_.D9.87.D9.85.D8.B1.D8.A7.D9.87
99
*/
10-
protected static $formats = array(
11-
'021########',
12-
'026########',
13-
'031########',
10+
protected static $formats = array( // land line formts seprated by province
11+
"011########", //Mazandaran
12+
"013########", //Gilan
13+
"017########", //Golestan
14+
"021########", //Tehran
15+
"023########", //Semnan
16+
"024########", //Zanjan
17+
"025########", //Qom
18+
"026########", //Alborz
19+
"028########", //Qazvin
20+
"031########", //Isfahan
21+
"034########", //Kerman
22+
"035########", //Yazd
23+
"038########", //Chaharmahal and Bakhtiari
24+
"041########", //East Azerbaijan
25+
"044########", //West Azerbaijan
26+
"045########", //Ardabil
27+
"051########", //Razavi Khorasan
28+
"054########", //Sistan and Baluchestan
29+
"056########", //South Khorasan
30+
"058########", //North Khorasan
31+
"061########", //Khuzestan
32+
"066########", //Lorestan
33+
"071########", //Fars
34+
"074########", //Kohgiluyeh and Boyer-Ahmad
35+
"076########", //Hormozgan
36+
"077########", //Bushehr
37+
"081########", //Hamadan
38+
"083########", //Kermanshah
39+
"084########", //Ilam
40+
"086########", //Markazi
41+
"087########", //Kurdistan
1442
);
43+
1544
protected static $mobileNumberPrefixes = array(
1645
'0910#######',//mci
1746
'0911#######',
@@ -36,8 +65,8 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
3665
'0939#######',
3766
'0920#######',
3867
'0921#######',
39-
'0937#######',
40-
'0937#######',
68+
'0937#######',
69+
'0990#######', // MCI
4170
);
4271
public static function mobileNumber()
4372
{

0 commit comments

Comments
 (0)