diff --git a/README.md b/README.md index 17e9a59..327ec71 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,55 @@ docker-compose up -d ``` in the repository root. You can then validate an email by navigating to http://localhost:8880?email=email.to.validate@example.com. The result will be JSON string as per above. +## Adding a custom data source + +The easiest way to add new data is to update the [data files](https://github.com/daveearley/Email-Validation-Tool/tree/master/src/data) manually. You can also create your own data provider by creating a data provider class which implements the [EmailValidation\EmailDataProviderInterface](https://github.com/daveearley/Email-Validation-Tool/blob/master/src/EmailDataProviderInterface.php). + +Example Code: + +```php +