Skip to content

Commit 3457b96

Browse files
committed
Documented dea service.
1 parent 3998345 commit 3457b96

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,14 @@ $formatterResult = $personNameFormatter->format($inputPerson, new FormatterPrope
152152
echo $formatterResult->getFormatted(); //will print 'John Kennedy'
153153
```
154154

155+
156+
## Disposable Email Address Detector
157+
158+
The DEA-Detector checks email addresses against a list of known "trash domains" such as mailinator.com.
159+
160+
```php
161+
$deaDetector = $serviceFactory->emailServices()->disposableEmailAddressDetector();
162+
$result = $deaDetector->isDisposable("[email protected]");
163+
echo $result->getDisposable()->toString()); //will print 'YES'
164+
```
165+

src/org/nameapi/client/services/email/disposableemailaddressdetector/DisposableEmailAddressDetectorService.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
require_once('Maybe.php');
1010

1111
/**
12+
* This is the service class for the web service offered at
13+
* http://api.nameapi.org/soap/v4.0/email/disposableemailaddressdetector?wsdl
14+
*
15+
* HOW TO USE:
16+
* $deaDetector = $myServiceFactory->emailServices()->disposableEmailAddressDetector();
17+
* $result = $deaDetector->isDisposable("[email protected]");
18+
* echo $result->getDisposable()->toString()); //will print 'YES'
1219
*/
1320
class DisposableEmailAddressDetectorService {
1421

0 commit comments

Comments
 (0)