mirror of
https://github.com/retailcrm/transparent-email.git
synced 2024-11-21 21:06:04 +03:00
Documentation
This commit is contained in:
parent
4614dcd7aa
commit
7d3895cfd4
13
README.md
13
README.md
@ -21,11 +21,16 @@ To detect multi-accounts on your website.
|
||||
## Usage
|
||||
|
||||
```php
|
||||
use \bkrukowski\TransparentEmail\TransparentEmail;
|
||||
use \bkrukowski\TransparentEmail\Emails\Email;
|
||||
use bkrukowski\TransparentEmail\TransparentEmail;
|
||||
use bkrukowski\TransparentEmail\Emails\Email;
|
||||
use bkrukowski\TransparentEmail\Emails\InvalidEmailException;
|
||||
|
||||
$cleaner = new TransparentEmail();
|
||||
$transformedEmail = $cleaner->getPrimaryEmail(new Email('John.Doe+alias@gmail.com'));
|
||||
try {
|
||||
$cleaner = new TransparentEmail();
|
||||
$transformedEmail = $cleaner->getPrimaryEmail(new Email('John.Doe+alias@gmail.com'));
|
||||
} catch (InvalidEmailException $exception) {
|
||||
// do something
|
||||
}
|
||||
```
|
||||
|
||||
## Yahoo.com
|
||||
|
Loading…
Reference in New Issue
Block a user