PluginProbe ʕ •ᴥ•ʔ
GiveWP – Donation Plugin and Fundraising Platform / 3.3.1
GiveWP – Donation Plugin and Fundraising Platform v3.3.1
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 2.32.0 2.33.0 2.33.1 2.33.2 2.33.3 2.33.4 2.33.5 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.10.0 3.11.0 3.12.0 3.12.1 3.12.2 3.12.3 3.13.0 3.14.0 3.14.1 3.14.2 3.15.0 3.15.1 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.16.5 3.17.0 3.17.1 3.17.2 3.18.0 3.19.0 3.19.1 3.19.2 3.19.3 3.19.4 3.2.0 3.2.1 3.2.2 3.20.0 3.21.0 3.21.1 3.22.0 3.22.1 3.22.2 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.7.0 3.8.0 3.9.0 4.0.0 4.1.0 4.1.1 4.10.0 4.10.1 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.14.5 4.14.6 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.1 4.7.0 4.7.1 4.8.0 4.8.1 4.9.0 trunk 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.2 2.11.3 2.12.0 2.12.1 2.12.2 2.12.3 2.13.0 2.13.1 2.13.2 2.13.3 2.13.4 2.14.0 2.15.0 2.16.0 2.16.1 2.17.0 2.17.1 2.17.3 2.18.0 2.18.1 2.19.1 2.19.2 2.19.3 2.19.4 2.19.5 2.19.6 2.19.7 2.19.8 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.20.0 2.20.1 2.20.2 2.21.0 2.21.1 2.21.2 2.21.3 2.21.4 2.22.0 2.22.1 2.22.2 2.22.3 2.23.0 2.23.1 2.23.2 2.24.0 2.24.1 2.24.2 2.25.0 2.25.1 2.25.2 2.25.3 2.26.0 2.27.0 2.27.1 2.27.2 2.27.3 2.28.0 2.29.0 2.29.1 2.29.2
give / vendor / vendor-prefixed / fakerphp / faker / src / Faker / Provider / Internet.php
give / vendor / vendor-prefixed / fakerphp / faker / src / Faker / Provider Last commit date
ar_EG 2 years ago ar_JO 2 years ago ar_SA 2 years ago at_AT 2 years ago bg_BG 2 years ago bn_BD 2 years ago cs_CZ 2 years ago da_DK 2 years ago de_AT 2 years ago de_CH 2 years ago de_DE 2 years ago el_CY 2 years ago el_GR 2 years ago en_AU 2 years ago en_CA 2 years ago en_GB 2 years ago en_HK 2 years ago en_IN 2 years ago en_NG 2 years ago en_NZ 2 years ago en_PH 2 years ago en_SG 2 years ago en_UG 2 years ago en_US 2 years ago en_ZA 2 years ago es_AR 2 years ago es_ES 2 years ago es_PE 2 years ago es_VE 2 years ago et_EE 2 years ago fa_IR 2 years ago fi_FI 2 years ago fr_BE 2 years ago fr_CA 2 years ago fr_CH 2 years ago fr_FR 2 years ago he_IL 2 years ago hr_HR 2 years ago hu_HU 2 years ago hy_AM 2 years ago id_ID 2 years ago is_IS 2 years ago it_CH 2 years ago it_IT 2 years ago ja_JP 2 years ago ka_GE 2 years ago kk_KZ 2 years ago ko_KR 2 years ago lt_LT 2 years ago lv_LV 2 years ago me_ME 2 years ago mn_MN 2 years ago ms_MY 2 years ago nb_NO 2 years ago ne_NP 2 years ago nl_BE 2 years ago nl_NL 2 years ago pl_PL 2 years ago pt_BR 2 years ago pt_PT 2 years ago ro_MD 2 years ago ro_RO 2 years ago ru_RU 2 years ago sk_SK 2 years ago sl_SI 2 years ago sr_Cyrl_RS 2 years ago sr_Latn_RS 2 years ago sr_RS 2 years ago sv_SE 2 years ago th_TH 2 years ago tr_TR 2 years ago uk_UA 2 years ago vi_VN 2 years ago zh_CN 2 years ago zh_TW 2 years ago Address.php 2 years ago Barcode.php 2 years ago Base.php 2 years ago Biased.php 2 years ago Color.php 2 years ago Company.php 2 years ago DateTime.php 2 years ago File.php 2 years ago HtmlLorem.php 2 years ago Image.php 2 years ago Internet.php 2 years ago Lorem.php 2 years ago Medical.php 2 years ago Miscellaneous.php 2 years ago Payment.php 2 years ago Person.php 2 years ago PhoneNumber.php 2 years ago Text.php 2 years ago UserAgent.php 2 years ago Uuid.php 2 years ago
Internet.php
423 lines
1 <?php
2 /**
3 * @license MIT
4 *
5 * Modified by impress-org on 23-January-2024 using Strauss.
6 * @see https://github.com/BrianHenryIE/strauss
7 */
8
9 namespace Give\Vendors\Faker\Provider;
10
11 class Internet extends Base
12 {
13 protected static $freeEmailDomain = ['gmail.com', 'yahoo.com', 'hotmail.com'];
14 protected static $tld = ['com', 'com', 'com', 'com', 'com', 'com', 'biz', 'info', 'net', 'org'];
15
16 protected static $userNameFormats = [
17 '{{lastName}}.{{firstName}}',
18 '{{firstName}}.{{lastName}}',
19 '{{firstName}}##',
20 '?{{lastName}}',
21 ];
22 protected static $emailFormats = [
23 '{{userName}}@{{domainName}}',
24 '{{userName}}@{{freeEmailDomain}}',
25 ];
26 protected static $urlFormats = [
27 'http://www.{{domainName}}/',
28 'http://{{domainName}}/',
29 'http://www.{{domainName}}/{{slug}}',
30 'http://www.{{domainName}}/{{slug}}',
31 'https://www.{{domainName}}/{{slug}}',
32 'http://www.{{domainName}}/{{slug}}.html',
33 'http://{{domainName}}/{{slug}}',
34 'http://{{domainName}}/{{slug}}',
35 'http://{{domainName}}/{{slug}}.html',
36 'https://{{domainName}}/{{slug}}.html',
37 ];
38
39 /**
40 * @see https://tools.ietf.org/html/rfc1918#section-3
41 */
42 protected static $localIpBlocks = [
43 ['10.0.0.0', '10.255.255.255'],
44 ['172.16.0.0', '172.31.255.255'],
45 ['192.168.0.0', '192.168.255.255'],
46 ];
47
48 /**
49 * @example 'jdoe@acme.biz'
50 *
51 * @return string
52 */
53 public function email()
54 {
55 $format = static::randomElement(static::$emailFormats);
56
57 return $this->generator->parse($format);
58 }
59
60 /**
61 * @example 'jdoe@example.com'
62 *
63 * @return string
64 */
65 final public function safeEmail()
66 {
67 return preg_replace('/\s/u', '', $this->userName() . '@' . static::safeEmailDomain());
68 }
69
70 /**
71 * @example 'jdoe@gmail.com'
72 *
73 * @return string
74 */
75 public function freeEmail()
76 {
77 return preg_replace('/\s/u', '', $this->userName() . '@' . static::freeEmailDomain());
78 }
79
80 /**
81 * @example 'jdoe@dawson.com'
82 *
83 * @return string
84 */
85 public function companyEmail()
86 {
87 return preg_replace('/\s/u', '', $this->userName() . '@' . $this->domainName());
88 }
89
90 /**
91 * @example 'gmail.com'
92 *
93 * @return string
94 */
95 public static function freeEmailDomain()
96 {
97 return static::randomElement(static::$freeEmailDomain);
98 }
99
100 /**
101 * @example 'example.org'
102 *
103 * @return string
104 */
105 final public static function safeEmailDomain()
106 {
107 $domains = [
108 'example.com',
109 'example.org',
110 'example.net',
111 ];
112
113 return static::randomElement($domains);
114 }
115
116 /**
117 * @example 'jdoe'
118 *
119 * @return string
120 */
121 public function userName()
122 {
123 $format = static::randomElement(static::$userNameFormats);
124 $username = static::bothify($this->generator->parse($format));
125
126 $username = strtolower(static::transliterate($username));
127
128 // check if transliterate() didn't support the language and removed all letters
129 if (trim($username, '._') === '') {
130 throw new \Exception('userName failed with the selected locale. Try a different locale or activate the "intl" PHP extension.');
131 }
132
133 // clean possible trailing dots from first/last names
134 $username = str_replace('..', '.', $username);
135 $username = rtrim($username, '.');
136
137 return $username;
138 }
139
140 /**
141 * @example 'fY4èHdZv68'
142 *
143 * @return string
144 */
145 public function password($minLength = 6, $maxLength = 20)
146 {
147 $pattern = str_repeat('*', $this->numberBetween($minLength, $maxLength));
148
149 return $this->asciify($pattern);
150 }
151
152 /**
153 * @example 'tiramisu.com'
154 *
155 * @return string
156 */
157 public function domainName()
158 {
159 return $this->domainWord() . '.' . $this->tld();
160 }
161
162 /**
163 * @example 'faber'
164 *
165 * @return string
166 */
167 public function domainWord()
168 {
169 $lastName = $this->generator->format('lastName');
170
171 $lastName = strtolower(static::transliterate($lastName));
172
173 // check if transliterate() didn't support the language and removed all letters
174 if (trim($lastName, '._') === '') {
175 throw new \Exception('domainWord failed with the selected locale. Try a different locale or activate the "intl" PHP extension.');
176 }
177
178 // clean possible trailing dot from last name
179 $lastName = rtrim($lastName, '.');
180
181 return $lastName;
182 }
183
184 /**
185 * @example 'com'
186 *
187 * @return string
188 */
189 public function tld()
190 {
191 return static::randomElement(static::$tld);
192 }
193
194 /**
195 * @example 'http://www.runolfsdottir.com/'
196 *
197 * @return string
198 */
199 public function url()
200 {
201 $format = static::randomElement(static::$urlFormats);
202
203 return $this->generator->parse($format);
204 }
205
206 /**
207 * @example 'aut-repellat-commodi-vel-itaque-nihil-id-saepe-nostrum'
208 *
209 * @return string
210 */
211 public function slug($nbWords = 6, $variableNbWords = true)
212 {
213 if ($nbWords <= 0) {
214 return '';
215 }
216
217 if ($variableNbWords) {
218 $nbWords = (int) ($nbWords * self::numberBetween(60, 140) / 100) + 1;
219 }
220 $words = $this->generator->words($nbWords);
221
222 return implode('-', $words);
223 }
224
225 /**
226 * @example '237.149.115.38'
227 *
228 * @return string
229 */
230 public function ipv4()
231 {
232 return long2ip(Miscellaneous::boolean() ? self::numberBetween(-2147483648, -2) : self::numberBetween(16777216, 2147483647));
233 }
234
235 /**
236 * @example '35cd:186d:3e23:2986:ef9f:5b41:42a4:e6f1'
237 *
238 * @return string
239 */
240 public function ipv6()
241 {
242 $res = [];
243
244 for ($i = 0; $i < 8; ++$i) {
245 $res[] = dechex(self::numberBetween(0, 65535));
246 }
247
248 return implode(':', $res);
249 }
250
251 /**
252 * @example '10.1.1.17'
253 *
254 * @return string
255 */
256 public static function localIpv4()
257 {
258 $ipBlock = self::randomElement(static::$localIpBlocks);
259
260 return long2ip(static::numberBetween(ip2long($ipBlock[0]), ip2long($ipBlock[1])));
261 }
262
263 /**
264 * @example '32:F1:39:2F:D6:18'
265 *
266 * @return string
267 */
268 public static function macAddress()
269 {
270 $mac = [];
271
272 for ($i = 0; $i < 6; ++$i) {
273 $mac[] = sprintf('%02X', self::numberBetween(0, 0xff));
274 }
275
276 return implode(':', $mac);
277 }
278
279 protected static function transliterate($string)
280 {
281 if (0 === preg_match('/[^A-Za-z0-9_.]/', $string)) {
282 return $string;
283 }
284
285 $transId = 'Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;';
286
287 if (class_exists(\Transliterator::class, false) && $transliterator = \Transliterator::create($transId)) {
288 $transString = $transliterator->transliterate($string);
289 } else {
290 $transString = static::toAscii($string);
291 }
292
293 return preg_replace('/[^A-Za-z0-9_.]/u', '', $transString);
294 }
295
296 protected static function toAscii($string)
297 {
298 static $arrayFrom, $arrayTo;
299
300 if (empty($arrayFrom)) {
301 $transliterationTable = [
302 'IJ' => 'I', 'Ö' => 'O', 'Œ' => 'O', 'Ü' => 'U', 'ä' => 'a', 'æ' => 'a',
303 'ij' => 'i', 'ö' => 'o', 'œ' => 'o', 'ü' => 'u', 'ß' => 's', 'ſ' => 's',
304 'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', '�
305 ' => 'A',
306 'Æ' => 'A', 'Ā' => 'A', 'Ą' => 'A', 'Ă' => 'A', 'Ç' => 'C', 'Ć' => 'C',
307 'Č' => 'C', 'Ĉ' => 'C', 'Ċ' => 'C', 'Ď' => 'D', 'Đ' => 'D', 'È' => 'E',
308 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ē' => 'E', 'Ę' => 'E', 'Ě' => 'E',
309 'Ĕ' => 'E', 'Ė' => 'E', 'Ĝ' => 'G', 'Ğ' => 'G', 'Ġ' => 'G', 'Ģ' => 'G',
310 'Ĥ' => 'H', 'Ħ' => 'H', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I',
311 'Ī' => 'I', 'Ĩ' => 'I', 'Ĭ' => 'I', 'Į' => 'I', 'İ' => 'I', 'Ĵ' => 'J',
312 'Ķ' => 'K', 'Ľ' => 'K', 'Ĺ' => 'K', 'Ļ' => 'K', 'Ŀ' => 'K', 'Ł' => 'L',
313 'Ñ' => 'N', 'Ń' => 'N', 'Ň' => 'N', '�
314 ' => 'N', 'Ŋ' => 'N', 'Ò' => 'O',
315 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ø' => 'O', 'Ō' => 'O', 'Ő' => 'O',
316 'Ŏ' => 'O', 'Ŕ' => 'R', 'Ř' => 'R', 'Ŗ' => 'R', 'Ś' => 'S', 'Ş' => 'S',
317 'Ŝ' => 'S', 'Ș' => 'S', 'Š' => 'S', 'Ť' => 'T', 'Ţ' => 'T', 'Ŧ' => 'T',
318 'Ț' => 'T', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ū' => 'U', 'Ů' => 'U',
319 'Ű' => 'U', 'Ŭ' => 'U', 'Ũ' => 'U', 'Ų' => 'U', 'Ŵ' => 'W', 'Ŷ' => 'Y',
320 'Ÿ' => 'Y', 'Ý' => 'Y', 'Ź' => 'Z', 'Ż' => 'Z', 'Ž' => 'Z', 'à' => 'a',
321 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ā' => 'a', '�
322 ' => 'a', 'ă' => 'a',
323 'å' => 'a', 'ç' => 'c', 'ć' => 'c', 'č' => 'c', 'ĉ' => 'c', 'ċ' => 'c',
324 'ď' => 'd', 'đ' => 'd', 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e',
325 'ē' => 'e', 'ę' => 'e', 'ě' => 'e', 'ĕ' => 'e', 'ė' => 'e', 'ƒ' => 'f',
326 'ĝ' => 'g', 'ğ' => 'g', 'ġ' => 'g', 'ģ' => 'g', 'ĥ' => 'h', 'ħ' => 'h',
327 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', 'ī' => 'i', 'ĩ' => 'i',
328 'ĭ' => 'i', 'į' => 'i', 'ı' => 'i', 'ĵ' => 'j', 'ķ' => 'k', 'ĸ' => 'k',
329 'ł' => 'l', 'ľ' => 'l', 'ĺ' => 'l', 'ļ' => 'l', 'ŀ' => 'l', 'ñ' => 'n',
330 'ń' => 'n', 'ň' => 'n', 'ņ' => 'n', 'ʼn' => 'n', 'ŋ' => 'n', 'ò' => 'o',
331 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ø' => 'o', 'ō' => 'o', 'ő' => 'o',
332 'ŏ' => 'o', 'ŕ' => 'r', 'ř' => 'r', 'ŗ' => 'r', 'ś' => 's', 'š' => 's',
333 'ť' => 't', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ū' => 'u', 'ů' => 'u',
334 'ű' => 'u', 'ŭ' => 'u', 'ũ' => 'u', 'ų' => 'u', 'ŵ' => 'w', 'ÿ' => 'y',
335 'ý' => 'y', 'ŷ' => 'y', 'ż' => 'z', 'ź' => 'z', 'ž' => 'z', 'Α' => 'A',
336 'Ά' => 'A', '' => 'A', '' => 'A', '' => 'A', '' => 'A', '' => 'A',
337 '' => 'A', '' => 'A', '' => 'A', '' => 'A', '' => 'A', '' => 'A',
338 '' => 'A', '' => 'A', '' => 'A', '' => 'A', '' => 'A', '' => 'A',
339 '' => 'A', '' => 'A', '' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D',
340 'Ε' => 'E', 'Έ' => 'E', '' => 'E', '' => 'E', '' => 'E', '' => 'E',
341 '' => 'E', '' => 'E', '' => 'E', 'Ζ' => 'Z', 'Η' => 'I', 'Ή' => 'I',
342 '' => 'I', '' => 'I', '' => 'I', '' => 'I', '' => 'I', '' => 'I',
343 '' => 'I', '' => 'I', '' => 'I', '' => 'I', '' => 'I', '' => 'I',
344 '' => 'I', '' => 'I', '' => 'I', '' => 'I', '' => 'I', '' => 'I',
345 'Θ' => 'T', 'Ι' => 'I', 'Ί' => 'I', 'Ϊ' => 'I', '' => 'I', '' => 'I',
346 '' => 'I', '' => 'I', '' => 'I', '' => 'I', '' => 'I', 'Ἷ' => 'I',
347 '' => 'I', '' => 'I', '' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M',
348 'Ν' => 'N', 'Ξ' => 'K', 'Ο' => 'O', 'Ό' => 'O', '' => 'O', '' => 'O',
349 '' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O', 'Π' => 'P',
350 'Ρ' => 'R', '' => 'R', 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Ύ' => 'Y',
351 'Ϋ' => 'Y', '' => 'Y', '' => 'Y', '' => 'Y', '' => 'Y', '' => 'Y',
352 '' => 'Y', '' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'P', 'Ω' => 'O',
353 'Ώ' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O',
354 '' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O',
355 '' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O', '' => 'O',
356 '' => 'O', 'α' => 'a', 'ά' => 'a', '' => 'a', '' => 'a', '' => 'a',
357 'ἃ' => 'a', 'ἄ' => 'a', '�
358 ' => 'a', '' => 'a', '' => 'a', '' => 'a',
359 'ᾁ' => 'a', 'ᾂ' => 'a', 'ᾃ' => 'a', 'ᾄ' => 'a', '�
360 ' => 'a', '' => 'a',
361 '' => 'a', '' => 'a', '' => 'a', '' => 'a', '' => 'a', '' => 'a',
362 '' => 'a', '' => 'a', '' => 'a', 'β' => 'b', 'γ' => 'g', 'δ' => 'd',
363 'ε' => 'e', 'έ' => 'e', '' => 'e', '' => 'e', '' => 'e', '' => 'e',
364 '' => 'e', '' => 'e', '' => 'e', 'ζ' => 'z', 'η' => 'i', 'ή' => 'i',
365 '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i',
366 '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i',
367 '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i',
368 '' => 'i', '' => 'i', '' => 'i', '' => 'i', 'θ' => 't', 'ι' => 'i',
369 'ί' => 'i', 'ϊ' => 'i', 'ΐ' => 'i', '' => 'i', '' => 'i', '' => 'i',
370 '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i',
371 '' => 'i', '' => 'i', '' => 'i', '' => 'i', '' => 'i', 'κ' => 'k',
372 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => 'k', 'ο' => 'o', 'ό' => 'o',
373 'ὀ' => 'o', 'ὁ' => 'o', 'ὂ' => 'o', 'ὃ' => 'o', 'ὄ' => 'o', '�
374 ' => 'o',
375 '' => 'o', 'π' => 'p', 'ρ' => 'r', '' => 'r', '' => 'r', 'σ' => 's',
376 'ς' => 's', 'τ' => 't', '�
377 ' => 'y', 'ύ' => 'y', 'ϋ' => 'y', 'ΰ' => 'y',
378 '' => 'y', '' => 'y', '' => 'y', '' => 'y', '' => 'y', '' => 'y',
379 '' => 'y', '' => 'y', '' => 'y', '' => 'y', '' => 'y', '' => 'y',
380 '' => 'y', '' => 'y', 'φ' => 'f', 'χ' => 'x', 'ψ' => 'p', 'ω' => 'o',
381 'ώ' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o',
382 '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o',
383 '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o',
384 '' => 'o', '' => 'o', '' => 'o', '' => 'o', '' => 'o', 'А' => 'A',
385 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Е' => 'E', 'Ё' => 'E',
386 'Ж' => 'Z', 'З' => 'Z', 'И' => 'I', 'Й' => 'I', 'К' => 'K', 'Л' => 'L',
387 'М' => 'M', 'Н' => 'N', 'О' => 'O', 'П' => 'P', 'Р' => 'R', 'С' => 'S',
388 'Т' => 'T', 'У' => 'U', 'Ф' => 'F', 'Х' => 'K', 'Ц' => 'T', 'Ч' => 'C',
389 'Ш' => 'S', 'Щ' => 'S', 'Ы' => 'Y', 'Э' => 'E', 'Ю' => 'Y', 'Я' => 'Y',
390 'а' => 'A', 'б' => 'B', 'в' => 'V', 'г' => 'G', 'д' => 'D', 'е' => 'E',
391 'ё' => 'E', 'ж' => 'Z', 'з' => 'Z', 'и' => 'I', 'й' => 'I', 'к' => 'K',
392 'л' => 'L', 'м' => 'M', 'н' => 'N', 'о' => 'O', 'п' => 'P', 'р' => 'R',
393 'с' => 'S', 'т' => 'T', 'у' => 'U', 'ф' => 'F', '�
394 ' => 'K', 'ц' => 'T',
395 'ч' => 'C', 'ш' => 'S', 'щ' => 'S', 'ы' => 'Y', 'э' => 'E', 'ю' => 'Y',
396 'я' => 'Y', 'ð' => 'd', 'Ð' => 'D', 'þ' => 't', 'Þ' => 'T', '' => 'a',
397 '' => 'b', '' => 'g', '' => 'd', '' => 'e', '' => 'v', '' => 'z',
398 '' => 't', '' => 'i', '' => 'k', '' => 'l', '' => 'm', '' => 'n',
399 '' => 'o', '' => 'p', '' => 'z', '' => 'r', '' => 's', '' => 't',
400 '' => 'u', '' => 'p', '' => 'k', '' => 'g', '' => 'q', '' => 's',
401 '' => 'c', '' => 't', '' => 'd', '' => 't', '' => 'c', '' => 'k',
402 '' => 'j', '' => 'h', 'ţ' => 't', 'ʼ' => "'", '̧' => '', '' => 'h',
403 '' => "'", '' => "'", '' => 'u', '/' => '', 'ế' => 'e', '' => 'a',
404 '' => 'i', '' => 'a', '' => 'e', '' => 'i', '' => 'o', '' => 'e',
405 'ơ' => 'o', '' => 'a', '' => 'a', 'ư' => 'u', '' => 'a', '' => 'a',
406 '' => 'd', '' => 'H', '' => 'D', 'ș' => 's', 'ț' => 't', '' => 'o',
407 '' => 'a', 'ş' => 's', "'" => '', 'ու' => 'u', 'ա' => 'a', 'բ' => 'b',
408 'գ' => 'g', 'դ' => 'd', 'ե' => 'e', 'զ' => 'z', 'է' => 'e', 'ը' => 'y',
409 'թ' => 't', 'ժ' => 'zh', 'ի' => 'i', 'լ' => 'l', 'խ' => 'kh', 'ծ' => 'ts',
410 'կ' => 'k', 'հ' => 'h', 'ձ' => 'dz', 'ղ' => 'gh', 'ճ' => 'ch', 'մ' => 'm',
411 'յ' => 'y', 'ն' => 'n', 'շ' => 'sh', 'ո' => 'o', 'չ' => 'ch', 'պ' => 'p',
412 'ջ' => 'j', 'ռ' => 'r', 'ս' => 's', 'վ' => 'v', 'տ' => 't', 'ր' => 'r',
413 'ց' => 'ts', 'փ' => 'p', 'ք' => 'q', 'և' => 'ev', '�
414 ' => 'o', 'ֆ' => 'f',
415 ];
416 $arrayFrom = array_keys($transliterationTable);
417 $arrayTo = array_values($transliterationTable);
418 }
419
420 return str_replace($arrayFrom, $arrayTo, $string);
421 }
422 }
423