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
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The package includes both English and Dutch translations. The translations can b
38
38
Validates the provided [BIC number](https://www.betaalvereniging.nl/en/focus/giro-based-and-online-payments/bank-identifier-code-bic-for-sepa-transactions/).
39
39
40
40
```php
41
-
'field' => [new \BicNumber()],
41
+
'field' => [new BicNumber()],
42
42
```
43
43
44
44
### Contains
@@ -89,7 +89,7 @@ When the date is not according to the 'Y-m-d H:i' format then you are able to sp
89
89
90
90
### DutchPhone
91
91
92
-
Validates if the value is a valid dutch phone number. Both mobile or landlines are supported. See the `Phone` validation
92
+
Validates if the value is a valid Dutch phone number. Both mobile or landlines are supported. See the `Phone` validation
93
93
rule to validate a phone number which isn't limited to the Netherlands.
94
94
95
95
```php
@@ -98,7 +98,7 @@ rule to validate a phone number which isn't limited to the Netherlands.
98
98
99
99
### DutchPostalCode
100
100
101
-
Validates if the value is a valid dutch zip code, like `1234AB`.
101
+
Validates if the value is a valid Dutch zip code, like `1234AB`.
102
102
103
103
```php
104
104
'field' => [new DutchPostalCode()],
@@ -196,7 +196,7 @@ Validates if the value is a valid version according to the [Semver](https://semv
196
196
197
197
### VatNumber
198
198
199
-
Validates if the value is a valid formatted VAT number.
199
+
Validates if the value is a properly formatted VAT number.
200
200
201
201
```php
202
202
'field' => [new VatNumber()],
@@ -205,6 +205,16 @@ Validates if the value is a valid formatted VAT number.
205
205
**Be aware**: It doesn't check if the number is known in the VAT database. If you need to know the VAT number is truly
206
206
legit, check with [VIES](https://ec.europa.eu/taxation_customs/vies/#/vat-validation).
207
207
208
+
### VersionNumber
209
+
210
+
Validates if the value is a valid version number. The rule accepts both `x.y.z` and `x.y` formats. The parameter
211
+
`requirePatch` allows you to require the `z` part of the version number. This is useful for validation PHP version
0 commit comments