You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-22Lines changed: 54 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,10 @@ The package includes both English and Dutch translations. The translations can b
34
34
35
35
Validates the provided [BIC number](https://www.betaalvereniging.nl/en/focus/giro-based-and-online-payments/bank-identifier-code-bic-for-sepa-transactions/).
36
36
37
+
```php
38
+
'field' => [new \BicNumber()],
39
+
```
40
+
37
41
### Contains
38
42
39
43
Validates if the value contains a certain phrase.
@@ -77,26 +81,50 @@ When the date is not according to the 'Y-m-d H:i' format then you are able to sp
77
81
Validates if the value is a valid dutch phone number. Both mobile or landlines are supported. See the `Phone` validation
78
82
rule to validate a phone number which isn't limited to the Netherlands.
79
83
84
+
```php
85
+
'field' => [new DutchPhone()],
86
+
```
87
+
80
88
### DutchPostalCode
81
89
82
90
Validates if the value is a valid dutch zip code, like `1234AB`.
83
91
92
+
```php
93
+
'field' => [new DutchPostalCode()],
94
+
```
95
+
84
96
### HexColor
85
97
86
98
Validates if the value contains a hex color, like `#000000`.
87
99
100
+
```php
101
+
'field' => [new HexColor()],
102
+
```
103
+
88
104
### HostName
89
105
90
106
Validates if the value contains a valid hostname, like `example.com`.
91
107
108
+
```php
109
+
'field' => [new HostName()],
110
+
```
111
+
92
112
### InternationalBankAccountNumber
93
113
94
114
Validates if the value contains a valid [IBAN](https://en.wikipedia.org/wiki/International_Bank_Account_Number).
0 commit comments