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
*[Composer](https://getcomposer.org) is required for installation
36
-
*[Spoofchecking](/src/Validation/Extra/SpoofCheckValidation.php) and [DNSCheckValidation](/src/Validation/DNSCheckValidation.php) validation requires that your PHP system has the [PHP Internationalization Libraries](https://php.net/manual/en/book.intl.php) (also known as PHP Intl)
32
+
* PHP 8.1
33
+
*[Composer](https://getcomposer.org) is required for installation
34
+
*[Spoofchecking](/src/Validation/Extra/SpoofCheckValidation.php) and
**Note**: `PHP version upgrades will happen to accomodate to the pace of major frameworks. Minor versions bumps will go via minor versions of this library (i.e: PHP7.3 -> v3.x+1). Major versions will go with major versions of the library`
40
+
**Note**: `PHP version upgrades will happen to accomodate to the pace of major
41
+
frameworks. Minor versions bumps will go via minor versions of this library
42
+
(i.e: PHP7.3 -> v3.x+1). Major versions will go with major versions
`EmailValidator` requires you to decide which (or combination of them) validation/s strategy/ies you'd like to follow for each [validation](#available-validations).
55
+
`EmailValidator` requires you to decide which (or combination of them)
56
+
validation/s strategy/ies you'd like to follow for each
57
+
[validation](#available-validations).
51
58
52
59
A basic example with the RFC validation
60
+
53
61
```php
54
62
<?php
55
63
@@ -60,17 +68,22 @@ $validator = new EmailValidator();
60
68
$validator->isValid("[email protected]", new RFCValidation()); //true
61
69
```
62
70
63
-
64
71
### Available validations
65
72
66
73
1.[RFCValidation](/src/Validation/RFCValidation.php): Standard RFC-like email validation.
67
-
2.[NoRFCWarningsValidation](/src/Validation/NoRFCWarningsValidation.php): RFC-like validation that will fail when warnings* are found.
68
-
3.[DNSCheckValidation](/src/Validation/DNSCheckValidation.php): Will check if there are DNS records that signal that the server accepts emails. This does not entail that the email exists.
69
-
4.[MultipleValidationWithAnd](/src/Validation/MultipleValidationWithAnd.php): It is a validation that operates over other validations performing a logical and (&&) over the result of each validation.
70
-
5.[MessageIDValidation](/src/Validation/MessageIDValidation.php): Follows [RFC2822 for message-id](https://tools.ietf.org/html/rfc2822#section-3.6.4) to validate that field, that has some differences in the domain part.
71
-
6.[Your own validation](#how-to-extend): You can extend the library behaviour by implementing your own validations.
72
-
73
-
*warnings: Warnings are deviations from the RFC that in a broader interpretation are accepted.
Follows [RFC2822 for message-id](https://tools.ietf.org/html/rfc2822#section-3.6.4) to validate that field, that has some differences in the domain part.
82
+
6.[Your own validation](#how-to-extend): You can extend the library behaviour
83
+
by implementing your own validations.
84
+
85
+
*warnings: Warnings are deviations from the RFC that in a broader interpretation
0 commit comments