PluginProbe ʕ •ᴥ•ʔ
GiveWP – Donation Plugin and Fundraising Platform / 2.10.0
GiveWP – Donation Plugin and Fundraising Platform v2.10.0
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 / fakerphp / faker / src / Faker / Provider / Internet.php
give / vendor / fakerphp / faker / src / Faker / Provider Last commit date
ar_JO 5 years ago ar_SA 5 years ago at_AT 5 years ago bg_BG 5 years ago bn_BD 5 years ago cs_CZ 5 years ago da_DK 5 years ago de_AT 5 years ago de_CH 5 years ago de_DE 5 years ago el_CY 5 years ago el_GR 5 years ago en_AU 5 years ago en_CA 5 years ago en_GB 5 years ago en_HK 5 years ago en_IN 5 years ago en_NG 5 years ago en_NZ 5 years ago en_PH 5 years ago en_SG 5 years ago en_UG 5 years ago en_US 5 years ago en_ZA 5 years ago es_AR 5 years ago es_ES 5 years ago es_PE 5 years ago es_VE 5 years ago et_EE 5 years ago fa_IR 5 years ago fi_FI 5 years ago fr_BE 5 years ago fr_CA 5 years ago fr_CH 5 years ago fr_FR 5 years ago he_IL 5 years ago hr_HR 5 years ago hu_HU 5 years ago hy_AM 5 years ago id_ID 5 years ago is_IS 5 years ago it_CH 5 years ago it_IT 5 years ago ja_JP 5 years ago ka_GE 5 years ago kk_KZ 5 years ago ko_KR 5 years ago lt_LT 5 years ago lv_LV 5 years ago me_ME 5 years ago mn_MN 5 years ago ms_MY 5 years ago nb_NO 5 years ago ne_NP 5 years ago nl_BE 5 years ago nl_NL 5 years ago pl_PL 5 years ago pt_BR 5 years ago pt_PT 5 years ago ro_MD 5 years ago ro_RO 5 years ago ru_RU 5 years ago sk_SK 5 years ago sl_SI 5 years ago sr_Cyrl_RS 5 years ago sr_Latn_RS 5 years ago sr_RS 5 years ago sv_SE 5 years ago th_TH 5 years ago tr_TR 5 years ago uk_UA 5 years ago vi_VN 5 years ago zh_CN 5 years ago zh_TW 5 years ago Address.php 5 years ago Barcode.php 5 years ago Base.php 5 years ago Biased.php 5 years ago Color.php 5 years ago Company.php 5 years ago DateTime.php 5 years ago File.php 5 years ago HtmlLorem.php 5 years ago Image.php 5 years ago Internet.php 5 years ago Lorem.php 5 years ago Miscellaneous.php 5 years ago Payment.php 5 years ago Person.php 5 years ago PhoneNumber.php 5 years ago Text.php 5 years ago UserAgent.php 5 years ago Uuid.php 5 years ago
Internet.php
372 lines
1 <?php
2
3 namespace Faker\Provider;
4
5 class Internet extends Base
6 {
7 protected static $freeEmailDomain = array('gmail.com', 'yahoo.com', 'hotmail.com');
8 protected static $tld = array('com', 'com', 'com', 'com', 'com', 'com', 'biz', 'info', 'net', 'org');
9
10 protected static $userNameFormats = array(
11 '{{lastName}}.{{firstName}}',
12 '{{firstName}}.{{lastName}}',
13 '{{firstName}}##',
14 '?{{lastName}}',
15 );
16 protected static $emailFormats = array(
17 '{{userName}}@{{domainName}}',
18 '{{userName}}@{{freeEmailDomain}}',
19 );
20 protected static $urlFormats = array(
21 'http://www.{{domainName}}/',
22 'http://{{domainName}}/',
23 'http://www.{{domainName}}/{{slug}}',
24 'http://www.{{domainName}}/{{slug}}',
25 'https://www.{{domainName}}/{{slug}}',
26 'http://www.{{domainName}}/{{slug}}.html',
27 'http://{{domainName}}/{{slug}}',
28 'http://{{domainName}}/{{slug}}',
29 'http://{{domainName}}/{{slug}}.html',
30 'https://{{domainName}}/{{slug}}.html',
31 );
32
33 /**
34 * @example 'jdoe@acme.biz'
35 */
36 public function email()
37 {
38 $format = static::randomElement(static::$emailFormats);
39
40 return $this->generator->parse($format);
41 }
42
43 /**
44 * @example 'jdoe@example.com'
45 */
46 final public function safeEmail()
47 {
48 return preg_replace('/\s/u', '', $this->userName() . '@' . static::safeEmailDomain());
49 }
50
51 /**
52 * @example 'jdoe@gmail.com'
53 */
54 public function freeEmail()
55 {
56 return preg_replace('/\s/u', '', $this->userName() . '@' . static::freeEmailDomain());
57 }
58
59 /**
60 * @example 'jdoe@dawson.com'
61 */
62 public function companyEmail()
63 {
64 return preg_replace('/\s/u', '', $this->userName() . '@' . $this->domainName());
65 }
66
67 /**
68 * @example 'gmail.com'
69 */
70 public static function freeEmailDomain()
71 {
72 return static::randomElement(static::$freeEmailDomain);
73 }
74
75 /**
76 * @example 'example.org'
77 */
78 final public static function safeEmailDomain()
79 {
80 $domains = array(
81 'example.com',
82 'example.org',
83 'example.net'
84 );
85
86 return static::randomElement($domains);
87 }
88 /**
89 * @example 'jdoe'
90 */
91 public function userName()
92 {
93 $format = static::randomElement(static::$userNameFormats);
94 $username = static::bothify($this->generator->parse($format));
95
96 $username = strtolower(static::transliterate($username));
97
98 // check if transliterate() didn't support the language and removed all letters
99 if (trim($username, '._') === '') {
100 throw new \Exception('userName failed with the selected locale. Try a different locale or activate the "intl" PHP extension.');
101 }
102
103 // clean possible trailing dots from first/last names
104 $username = str_replace('..', '.', $username);
105 $username = rtrim($username, '.');
106
107 return $username;
108 }
109 /**
110 * @example 'fY4èHdZv68'
111 */
112 public function password($minLength = 6, $maxLength = 20)
113 {
114 $pattern = str_repeat('*', $this->numberBetween($minLength, $maxLength));
115
116 return $this->asciify($pattern);
117 }
118
119 /**
120 * @example 'tiramisu.com'
121 */
122 public function domainName()
123 {
124 return $this->domainWord() . '.' . $this->tld();
125 }
126
127 /**
128 * @example 'faber'
129 */
130 public function domainWord()
131 {
132 $lastName = $this->generator->format('lastName');
133
134 $lastName = strtolower(static::transliterate($lastName));
135
136 // check if transliterate() didn't support the language and removed all letters
137 if (trim($lastName, '._') === '') {
138 throw new \Exception('domainWord failed with the selected locale. Try a different locale or activate the "intl" PHP extension.');
139 }
140
141 // clean possible trailing dot from last name
142 $lastName = rtrim($lastName, '.');
143
144 return $lastName;
145 }
146
147 /**
148 * @example 'com'
149 */
150 public function tld()
151 {
152 return static::randomElement(static::$tld);
153 }
154
155 /**
156 * @example 'http://www.runolfsdottir.com/'
157 */
158 public function url()
159 {
160 $format = static::randomElement(static::$urlFormats);
161
162 return $this->generator->parse($format);
163 }
164
165 /**
166 * @example 'aut-repellat-commodi-vel-itaque-nihil-id-saepe-nostrum'
167 */
168 public function slug($nbWords = 6, $variableNbWords = true)
169 {
170 if ($nbWords <= 0) {
171 return '';
172 }
173 if ($variableNbWords) {
174 $nbWords = (int) ($nbWords * mt_rand(60, 140) / 100) + 1;
175 }
176 $words = $this->generator->words($nbWords);
177
178 return join('-', $words);
179 }
180
181 /**
182 * @example '237.149.115.38'
183 */
184 public function ipv4()
185 {
186 return long2ip(mt_rand(0, 1) == 0 ? mt_rand(-2147483648, -2) : mt_rand(16777216, 2147483647));
187 }
188
189 /**
190 * @example '35cd:186d:3e23:2986:ef9f:5b41:42a4:e6f1'
191 */
192 public function ipv6()
193 {
194 $res = array();
195 for ($i=0; $i < 8; $i++) {
196 $res []= dechex(mt_rand(0, "65535"));
197 }
198
199 return join(':', $res);
200 }
201
202 /**
203 * @example '10.1.1.17'
204 */
205 public static function localIpv4()
206 {
207 if (static::numberBetween(0, 1) === 0) {
208 // 10.x.x.x range
209 return long2ip(static::numberBetween(ip2long("10.0.0.0"), ip2long("10.255.255.255")));
210 }
211
212 // 192.168.x.x range
213 return long2ip(static::numberBetween(ip2long("192.168.0.0"), ip2long("192.168.255.255")));
214 }
215
216 /**
217 * @example '32:F1:39:2F:D6:18'
218 */
219 public static function macAddress()
220 {
221 for ($i=0; $i<6; $i++) {
222 $mac[] = sprintf('%02X', static::numberBetween(0, 0xff));
223 }
224 $mac = implode(':', $mac);
225
226 return $mac;
227 }
228
229 protected static function transliterate($string)
230 {
231 if (0 === preg_match('/[^A-Za-z0-9_.]/', $string)) {
232 return $string;
233 }
234
235 $transId = 'Any-Latin; Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC;';
236 if (class_exists('Transliterator', false) && $transliterator = \Transliterator::create($transId)) {
237 $transString = $transliterator->transliterate($string);
238 } else {
239 $transString = static::toAscii($string);
240 }
241
242 return preg_replace('/[^A-Za-z0-9_.]/u', '', $transString);
243 }
244
245 protected static function toAscii($string)
246 {
247 static $arrayFrom, $arrayTo;
248
249 if (empty($arrayFrom)) {
250 $transliterationTable = array(
251 'IJ'=>'I', 'Ö'=>'O', 'Œ'=>'O', 'Ü'=>'U', 'ä'=>'a', 'æ'=>'a',
252 'ij'=>'i', 'ö'=>'o', 'œ'=>'o', 'ü'=>'u', 'ß'=>'s', 'ſ'=>'s',
253 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', '�
254 '=>'A',
255 'Æ'=>'A', 'Ā'=>'A', 'Ą'=>'A', 'Ă'=>'A', 'Ç'=>'C', 'Ć'=>'C',
256 'Č'=>'C', 'Ĉ'=>'C', 'Ċ'=>'C', 'Ď'=>'D', 'Đ'=>'D', 'È'=>'E',
257 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ē'=>'E', 'Ę'=>'E', 'Ě'=>'E',
258 'Ĕ'=>'E', 'Ė'=>'E', 'Ĝ'=>'G', 'Ğ'=>'G', 'Ġ'=>'G', 'Ģ'=>'G',
259 'Ĥ'=>'H', 'Ħ'=>'H', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I',
260 'Ī'=>'I', 'Ĩ'=>'I', 'Ĭ'=>'I', 'Į'=>'I', 'İ'=>'I', 'Ĵ'=>'J',
261 'Ķ'=>'K', 'Ľ'=>'K', 'Ĺ'=>'K', 'Ļ'=>'K', 'Ŀ'=>'K', 'Ł'=>'L',
262 'Ñ'=>'N', 'Ń'=>'N', 'Ň'=>'N', '�
263 '=>'N', 'Ŋ'=>'N', 'Ò'=>'O',
264 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ø'=>'O', 'Ō'=>'O', 'Ő'=>'O',
265 'Ŏ'=>'O', 'Ŕ'=>'R', 'Ř'=>'R', 'Ŗ'=>'R', 'Ś'=>'S', 'Ş'=>'S',
266 'Ŝ'=>'S', 'Ș'=>'S', 'Š'=>'S', 'Ť'=>'T', 'Ţ'=>'T', 'Ŧ'=>'T',
267 'Ț'=>'T', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ū'=>'U', 'Ů'=>'U',
268 'Ű'=>'U', 'Ŭ'=>'U', 'Ũ'=>'U', 'Ų'=>'U', 'Ŵ'=>'W', 'Ŷ'=>'Y',
269 'Ÿ'=>'Y', 'Ý'=>'Y', 'Ź'=>'Z', 'Ż'=>'Z', 'Ž'=>'Z', 'à'=>'a',
270 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ā'=>'a', '�
271 '=>'a', 'ă'=>'a',
272 'å'=>'a', 'ç'=>'c', 'ć'=>'c', 'č'=>'c', 'ĉ'=>'c', 'ċ'=>'c',
273 'ď'=>'d', 'đ'=>'d', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e',
274 'ē'=>'e', 'ę'=>'e', 'ě'=>'e', 'ĕ'=>'e', 'ė'=>'e', 'ƒ'=>'f',
275 'ĝ'=>'g', 'ğ'=>'g', 'ġ'=>'g', 'ģ'=>'g', 'ĥ'=>'h', 'ħ'=>'h',
276 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ī'=>'i', 'ĩ'=>'i',
277 'ĭ'=>'i', 'į'=>'i', 'ı'=>'i', 'ĵ'=>'j', 'ķ'=>'k', 'ĸ'=>'k',
278 'ł'=>'l', 'ľ'=>'l', 'ĺ'=>'l', 'ļ'=>'l', 'ŀ'=>'l', 'ñ'=>'n',
279 'ń'=>'n', 'ň'=>'n', 'ņ'=>'n', 'ʼn'=>'n', 'ŋ'=>'n', 'ò'=>'o',
280 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ø'=>'o', 'ō'=>'o', 'ő'=>'o',
281 'ŏ'=>'o', 'ŕ'=>'r', 'ř'=>'r', 'ŗ'=>'r', 'ś'=>'s', 'š'=>'s',
282 'ť'=>'t', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ū'=>'u', 'ů'=>'u',
283 'ű'=>'u', 'ŭ'=>'u', 'ũ'=>'u', 'ų'=>'u', 'ŵ'=>'w', 'ÿ'=>'y',
284 'ý'=>'y', 'ŷ'=>'y', 'ż'=>'z', 'ź'=>'z', 'ž'=>'z', 'Α'=>'A',
285 'Ά'=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A',
286 ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A',
287 ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A', ''=>'A',
288 ''=>'A', ''=>'A', ''=>'A', 'Β'=>'B', 'Γ'=>'G', 'Δ'=>'D',
289 'Ε'=>'E', 'Έ'=>'E', ''=>'E', ''=>'E', ''=>'E', ''=>'E',
290 ''=>'E', ''=>'E', ''=>'E', 'Ζ'=>'Z', 'Η'=>'I', 'Ή'=>'I',
291 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I',
292 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I',
293 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I',
294 'Θ'=>'T', 'Ι'=>'I', 'Ί'=>'I', 'Ϊ'=>'I', ''=>'I', ''=>'I',
295 ''=>'I', ''=>'I', ''=>'I', ''=>'I', ''=>'I', 'Ἷ'=>'I',
296 ''=>'I', ''=>'I', ''=>'I', 'Κ'=>'K', 'Λ'=>'L', 'Μ'=>'M',
297 'Ν'=>'N', 'Ξ'=>'K', 'Ο'=>'O', 'Ό'=>'O', ''=>'O', ''=>'O',
298 ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', 'Π'=>'P',
299 'Ρ'=>'R', ''=>'R', 'Σ'=>'S', 'Τ'=>'T', 'Υ'=>'Y', 'Ύ'=>'Y',
300 'Ϋ'=>'Y', ''=>'Y', ''=>'Y', ''=>'Y', ''=>'Y', ''=>'Y',
301 ''=>'Y', ''=>'Y', 'Φ'=>'F', 'Χ'=>'X', 'Ψ'=>'P', 'Ω'=>'O',
302 'Ώ'=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O',
303 ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O',
304 ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O', ''=>'O',
305 ''=>'O', 'α'=>'a', 'ά'=>'a', ''=>'a', ''=>'a', ''=>'a',
306 'ἃ'=>'a', 'ἄ'=>'a', '�
307 '=>'a', ''=>'a', ''=>'a', ''=>'a',
308 'ᾁ'=>'a', 'ᾂ'=>'a', 'ᾃ'=>'a', 'ᾄ'=>'a', '�
309 '=>'a', ''=>'a',
310 ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'a', ''=>'a',
311 ''=>'a', ''=>'a', ''=>'a', 'β'=>'b', 'γ'=>'g', 'δ'=>'d',
312 'ε'=>'e', 'έ'=>'e', ''=>'e', ''=>'e', ''=>'e', ''=>'e',
313 ''=>'e', ''=>'e', ''=>'e', 'ζ'=>'z', 'η'=>'i', 'ή'=>'i',
314 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
315 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
316 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
317 ''=>'i', ''=>'i', ''=>'i', ''=>'i', 'θ'=>'t', 'ι'=>'i',
318 'ί'=>'i', 'ϊ'=>'i', 'ΐ'=>'i', ''=>'i', ''=>'i', ''=>'i',
319 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i',
320 ''=>'i', ''=>'i', ''=>'i', ''=>'i', ''=>'i', 'κ'=>'k',
321 'λ'=>'l', 'μ'=>'m', 'ν'=>'n', 'ξ'=>'k', 'ο'=>'o', 'ό'=>'o',
322 'ὀ'=>'o', 'ὁ'=>'o', 'ὂ'=>'o', 'ὃ'=>'o', 'ὄ'=>'o', '�
323 '=>'o',
324 ''=>'o', 'π'=>'p', 'ρ'=>'r', ''=>'r', ''=>'r', 'σ'=>'s',
325 'ς'=>'s', 'τ'=>'t', '�
326 '=>'y', 'ύ'=>'y', 'ϋ'=>'y', 'ΰ'=>'y',
327 ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y',
328 ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y', ''=>'y',
329 ''=>'y', ''=>'y', 'φ'=>'f', 'χ'=>'x', 'ψ'=>'p', 'ω'=>'o',
330 'ώ'=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o',
331 ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o',
332 ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o',
333 ''=>'o', ''=>'o', ''=>'o', ''=>'o', ''=>'o', 'А'=>'A',
334 'Б'=>'B', 'В'=>'V', 'Г'=>'G', 'Д'=>'D', 'Е'=>'E', 'Ё'=>'E',
335 'Ж'=>'Z', 'З'=>'Z', 'И'=>'I', 'Й'=>'I', 'К'=>'K', 'Л'=>'L',
336 'М'=>'M', 'Н'=>'N', 'О'=>'O', 'П'=>'P', 'Р'=>'R', 'С'=>'S',
337 'Т'=>'T', 'У'=>'U', 'Ф'=>'F', 'Х'=>'K', 'Ц'=>'T', 'Ч'=>'C',
338 'Ш'=>'S', 'Щ'=>'S', 'Ы'=>'Y', 'Э'=>'E', 'Ю'=>'Y', 'Я'=>'Y',
339 'а'=>'A', 'б'=>'B', 'в'=>'V', 'г'=>'G', 'д'=>'D', 'е'=>'E',
340 'ё'=>'E', 'ж'=>'Z', 'з'=>'Z', 'и'=>'I', 'й'=>'I', 'к'=>'K',
341 'л'=>'L', 'м'=>'M', 'н'=>'N', 'о'=>'O', 'п'=>'P', 'р'=>'R',
342 'с'=>'S', 'т'=>'T', 'у'=>'U', 'ф'=>'F', '�
343 '=>'K', 'ц'=>'T',
344 'ч'=>'C', 'ш'=>'S', 'щ'=>'S', 'ы'=>'Y', 'э'=>'E', 'ю'=>'Y',
345 'я'=>'Y', 'ð'=>'d', 'Ð'=>'D', 'þ'=>'t', 'Þ'=>'T', ''=>'a',
346 ''=>'b', ''=>'g', ''=>'d', ''=>'e', ''=>'v', ''=>'z',
347 ''=>'t', ''=>'i', ''=>'k', ''=>'l', ''=>'m', ''=>'n',
348 ''=>'o', ''=>'p', ''=>'z', ''=>'r', ''=>'s', ''=>'t',
349 ''=>'u', ''=>'p', ''=>'k', ''=>'g', ''=>'q', ''=>'s',
350 ''=>'c', ''=>'t', ''=>'d', ''=>'t', ''=>'c', ''=>'k',
351 ''=>'j', ''=>'h', 'ţ'=>'t', 'ʼ'=>"'", '̧'=>'', ''=>'h',
352 ''=>"'", ''=>"'", ''=>'u', '/'=>'', 'ế'=>'e', ''=>'a',
353 ''=>'i', ''=>'a', ''=>'e', ''=>'i', ''=>'o', ''=>'e',
354 'ơ'=>'o', ''=>'a', ''=>'a', 'ư'=>'u', ''=>'a', ''=>'a',
355 ''=>'d', ''=>'H', ''=>'D', 'ș'=>'s', 'ț'=>'t', ''=>'o',
356 ''=>'a', 'ş'=>'s', "'"=>'', 'ու'=>'u', 'ա'=>'a', 'բ'=>'b',
357 'գ'=>'g', 'դ'=>'d', 'ե'=>'e', 'զ'=>'z', 'է'=>'e', 'ը'=>'y',
358 'թ'=>'t', 'ժ'=>'zh', 'ի'=>'i', 'լ'=>'l', 'խ'=>'kh', 'ծ'=>'ts',
359 'կ'=>'k', 'հ'=>'h', 'ձ'=>'dz', 'ղ'=>'gh', 'ճ'=>'ch', 'մ'=>'m',
360 'յ'=>'y', 'ն'=>'n', 'շ'=>'sh', 'ո'=>'o', 'չ'=>'ch', 'պ'=>'p',
361 'ջ'=>'j', 'ռ'=>'r', 'ս'=>'s', 'վ'=>'v', 'տ'=>'t', 'ր'=>'r',
362 'ց'=>'ts', 'փ'=>'p', 'ք'=>'q', 'և'=>'ev', '�
363 '=>'o', 'ֆ'=>'f',
364 );
365 $arrayFrom = array_keys($transliterationTable);
366 $arrayTo = array_values($transliterationTable);
367 }
368
369 return str_replace($arrayFrom, $arrayTo, $string);
370 }
371 }
372