Skip to content

Commit 30562b6

Browse files
committed
Merge branch 'taz77-correct-readme-php-example-code-php-dependencies'
2 parents 4d446bf + cbb8b9e commit 30562b6

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#EmailValidator
22
[![Build Status](https://travis-ci.org/egulias/EmailValidator.png?branch=master)](https://travis-ci.org/egulias/EmailValidator) [![Coverage Status](https://coveralls.io/repos/egulias/EmailValidator/badge.png?branch=master)](https://coveralls.io/r/egulias/EmailValidator?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/egulias/EmailValidator/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/egulias/EmailValidator/?branch=master) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/22ba6692-9c02-42e5-a65d-1c5696bfffc6/small.png)](https://insight.sensiolabs.com/projects/22ba6692-9c02-42e5-a65d-1c5696bfffc6)
33
=============================
4-
With the help of
4+
With the help of [PHPStorm](https://www.jetbrains.com/phpstorm/)
5+
6+
##Requirements##
7+
8+
* [Composer](https://getcomposer.org) is required for installation
9+
* [Spoofchecking](https://github.com/egulias/EmailValidator/blob/master/EmailValidator/Validation/SpoofCheckValidation.php) validation requires that your PHP system have the [PHP Internationalization Libraries](http://php.net/manual/en/book.intl.php) (also known as PHP Intl)
510

6-
![Powered by PhpStorm](https://www.jetbrains.com/phpstorm/documentation/docs/logo_phpstorm.png)
711
##Installation##
812

913
Run the command below to install via Composer
@@ -51,8 +55,8 @@ $validator = new EmailValidator();
5155
$multipleValidations = new MultipleValidationWithAnd([
5256
new RFCValidation(),
5357
new DNSCheckValidation()
54-
])
55-
$validator->isValid("example@example.com", $multipleValidations) //true
58+
]);
59+
$validator->isValid("example@example.com", $multipleValidations); //true
5660
```
5761

5862
###How to extend###

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"phpunit/phpunit": "^4.8.0",
2929
"dominicsayers/isemail": "dev-master"
3030
},
31+
"suggest": {
32+
"ext/php-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation"
33+
},
3134
"autoload": {
3235
"psr-4": {
3336
"Egulias\\EmailValidator\\": "EmailValidator"

0 commit comments

Comments
 (0)