1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
namespace Faker\Provider\el_GR;
class PhoneNumber extends \Faker\Provider\PhoneNumber
{
/**
* @link https://en.wikipedia.org/wiki/Telephone_numbers_in_Greece
*/
protected static $formats = array(
// International formats
'+30 2# ########',
'+30 2## #######',
'+30 2### ######',
'+302#########',
'+3069########',
'+30 69 ########',
'+30 69########',
'+30 69# #######',
'+30 69# ### ####',
'+30 69# #### ###',
'+30 69## ######',
'+30 69## ## ## ##',
'+30 69## ### ###',
// Standard format
'2#########',
'2## #######',
'2### ######',
'69########',
'69# #######',
'69# ### ####',
'69# #### ###',
'69## ######',
'69## ## ## ##',
'69## ### ###',
);
protected static $mobileFormats = array(
// International formats
'+3069########',
'+30 69########',
'+30 69# #######',
'+30 69# ### ####',
'+30 69# #### ###',
'+30 69## ######',
'+30 69## ## ## ##',
'+30 69## ### ###',
// Standard formats
'69########',
'69# #######',
'69# ### ####',
'69# #### ###',
'69## ######',
'69## ## ## ##',
'69## ### ###',
);
public static function mobilePhoneNumber()
{
return static::numerify(static::randomElement(static::$mobileFormats));
}
protected static $tollFreeFormats = array(
// International formats
'+30 800#######',
'+30 800 #######',
'+30 800 ## #####',
'+30 800 ### ####',
// Standard formats
'800#######',
'800 #######',
'800 ## #####',
'800 ### ####',
);
public static function tollFreeNumber()
{
return static::numerify(static::randomElement(static::$tollFreeFormats));
}
}