PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.11.2
GiveWP – Donation Plugin and Fundraising Platform v2.11.2
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / vendor / fakerphp / faker / src / Faker / Provider / fa_IR / Internet.php
Internet.php
103 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Faker\Provider\fa_IR;
4
5 class Internet extends \Faker\Provider\Internet
6 {
7 protected static $userNameFormats = array(
8 '{{lastNameAscii}}.{{firstNameAscii}}',
9 '{{firstNameAscii}}.{{lastNameAscii}}',
10 '{{firstNameAscii}}##',
11 '?{{lastNameAscii}}',
12 );
13
14 protected static $safeEmailTld = array(
15 'com', 'ir', 'me', 'net', 'org',
16 );
17
18 /**
19 * @link https://en.wikipedia.org/wiki/.ir
20 */
21 protected static $tld = array(
22 'biz', 'com', 'info', 'ac.ir', 'sch.ir', 'co.ir', 'ir', 'net', 'org',
23 );
24
25 /**
26 * @link http://en.wikipedia.org/wiki/Category:Iranian-language_surnames
27 */
28 protected static $lastNameAscii = array(
29 'abdullahi', 'abbasi', 'abedini', 'ahadi', 'ahmadi', 'akbari', 'alizadeh', 'asadi',
30 'baraghani', 'babaei',
31 'chamran',
32 'ebrahimi', 'esfahani',
33 'fanaei', 'farahani', 'farsi', 'fekri',
34 'ghasemi', 'ghorbani',
35 'hamadani', 'hamidi', 'heidari', 'hijazi', 'husseini',
36 'jahanbani', 'jalili', 'jamshidi', 'javadi',
37 'kadivar', 'karimi', 'kashani', 'kazmi', 'khadem', 'khalaji', 'khomeini', 'khorsandi',
38 'mahdavi', 'mahmoudi', 'mahmoudieh', 'majidi', 'mazanderani', 'mirzaei', 'mokri', 'mohammady', 'mousavi',
39 'nabavi', 'naceri', 'nafisi', 'najafi', 'nalci', 'namazi', 'namdar', 'nariman', 'nazari', 'nili', 'norouzi',
40 'pahlavi', 'paria', 'pashaei', 'pejman',
41 'qazwini',
42 'rahimi', 'rahmani', 'rajaei', 'ramadani', 'rashidi', 'rezaei',
43 'salari', 'salehi', 'salemi', 'shahbazi', 'shahriari', 'shahidi', 'shirazi', 'shojaei', 'soleimani', 'soomekh', 'soroush',
44 'tabatabaei', 'talebi', 'tousi',
45 'yazdani', 'yazdi', 'yousefi',
46 'zandi', 'zare',
47 );
48
49 /*
50 * @link http://en.wikipedia.org/wiki/Persian_name
51 */
52 protected static $firstNameAscii = array(
53 'abbas', 'afshin', 'ahmad', 'ali', 'amir', 'anahita', 'anousheh', 'arash', 'ardeshir', 'arezu', 'aria', 'arian', 'arman', 'ashraf', 'atoosa', 'azadeh', 'azar',
54 'babak', 'bahar', 'bahare', 'bardia', 'behnaz', 'benyamin', 'bita',
55 'dalir', 'dariush', 'davoud', 'donya',
56 'ebrahim', 'ehsan', 'eskandar', 'esmaeel',
57 'farangis', 'farbod', 'farhad', 'farideh', 'farnaz', 'farrokh', 'farshid', 'farzaneh', 'fateme', 'fereshteh',
58 'garshasp',
59 'hanie', 'hashem', 'hirbod', 'hoda', 'hormoz', 'hossein',
60 'jaleh', 'jamshid', 'javad',
61 'kamran', 'karim', 'kasra', 'katayoun', 'kazem', 'khorshid', 'khosrow', 'kiana', 'kiarash', 'kourosh',
62 'laleh', 'leila',
63 'mahdi', 'mahmoud', 'mahshid', 'majid', 'manuchehr', 'marjan', 'maryam', 'marzban', 'massoud', 'mazdak', 'maziar', 'mehran', 'mehrdad', 'meysam', 'milad', 'mina', 'mithra', 'mohammad', 'mohsen', 'musa',
64 'nasrin', 'nazanin', 'niloufar',
65 'omid',
66 'parastoo', 'parisa', 'parsa', 'parvin', 'parviz', 'payam', 'payvand', 'pedram', 'piruz', 'pouria',
67 'ramin', 'reyhan', 'reza', 'roksaneh', 'rostam', 'roxana', 'roya',
68 'sahar', 'saman', 'samir', 'sara', 'sassan', 'sepehr', 'sepideh', 'shahin', 'shahryar', 'shapour', 'shervin', 'shirin', 'simin', 'soheila', 'sohrab', 'soraya', 'soroush',
69 'tara', 'taraneh', 'turan',
70 'vahid',
71 'yaghoub', 'yahya', 'yasamin', 'yasaman', 'younes', 'yousef',
72 'zahra', 'zarine', 'zeynab', 'zhila',
73 );
74
75 public static function lastNameAscii()
76 {
77 return static::randomElement(static::$lastNameAscii);
78 }
79
80 public static function firstNameAscii()
81 {
82 return static::randomElement(static::$firstNameAscii);
83 }
84
85 /**
86 * @example 'ali.rezaei'
87 */
88 public function userName()
89 {
90 $format = static::randomElement(static::$userNameFormats);
91
92 return static::bothify($this->generator->parse($format));
93 }
94
95 /**
96 * @example 'ahmad.ir'
97 */
98 public function domainName()
99 {
100 return static::randomElement(static::$lastNameAscii) . '.' . $this->tld();
101 }
102 }
103