mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-26 05:48:43 +00:00
Correct PHP example. Add a requirements section.
Corrected PHP example for missing semi-colons. Added a new requirements section that explains the need for composer and the need of the PHP Intl library to use the spoof validation.
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
With the help of
|
||||
|
||||

|
||||
|
||||
##Requirements##
|
||||
To load this library, you must have [Composer](https://getcomposer.org) installed and operational. The Spoofchecking validation requires that your PHP system have the [PHP Internationalization Libraries](http://php.net/manual/en/book.intl.php) (also known as PHP Intl) insalled.
|
||||
|
||||
##Installation##
|
||||
|
||||
Run the command below to install via Composer
|
||||
@@ -51,8 +55,8 @@ $validator = new EmailValidator();
|
||||
$multipleValidations = new MultipleValidationWithAnd([
|
||||
new RFCValidation(),
|
||||
new DNSCheckValidation()
|
||||
])
|
||||
$validator->isValid("example@example.com", $multipleValidations) //true
|
||||
]);
|
||||
$validator->isValid("example@example.com", $multipleValidations); //true
|
||||
```
|
||||
|
||||
###How to extend###
|
||||
|
||||
Reference in New Issue
Block a user