Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boxuk/wordpress-email-tld-checker
📧 A small WordPress plugin to validate email addresses against valid TLDs.
https://github.com/boxuk/wordpress-email-tld-checker
email-validation iana tld-verification wordpress wordpress-plugin
Last synced: 5 days ago
JSON representation
📧 A small WordPress plugin to validate email addresses against valid TLDs.
- Host: GitHub
- URL: https://github.com/boxuk/wordpress-email-tld-checker
- Owner: boxuk
- License: mit
- Created: 2019-08-07T15:47:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T11:12:42.000Z (about 1 year ago)
- Last Synced: 2024-04-14T11:50:56.100Z (7 months ago)
- Topics: email-validation, iana, tld-verification, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 20
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WordPress Email TLD Checker
===========================[![Build Status](https://travis-ci.com/boxuk/wordpress-email-tld-checker.svg?token=3rRfYiN6sMupp1z6RpzN&branch=master)](https://travis-ci.com/boxuk/wordpress-email-tld-checker)
A small WordPress plugin to validate email addresses against valid TLDs.
[https://github.com/BoxUk/wordpress-email-tld-checker](https://github.com/BoxUk/wordpress-email-tld-checker)
[License](LICENSE)
Installation
------------Installation is handled via [Composer](http://getcomposer.org).
```bash
composer require boxuk/wordpress-email-tld-checker
```> Make sure you have [composer/installers](https://github.com/composer/installers) configured to install within the plugins dir.
Activate the plugin.
```bash
wp plugin activate wordpress-email-tld-checker
```> Or via the plugins section of the admin UI.
Usage
-----Once the plugin is activated, an email validation (`is_email()`) will now check that the TLD (the .com bit for example) is valid according to [the official IANA database](https://www.iana.org/domains/root/db).
Troubleshooting
---------------The plugin is designed to be installed with [Composer](http://getcomposer.org) and assumes you are including somewhere the autoloader that comes with composer, if you're not then you may run into some issues. The easiest way to resolve is to include the `autolaod.php` from composer, but failing that you may be able to manually require the following files:
* `$vendor_dir . '/symfony/polyfill-intl-idn/Idn.php'`
* `$vendor_dir . '/symfony/polyfill-intl-idn/bootstrap.php'`
* `$vendor_dir . '/arubacao/tld-checker/src/RootZoneDatabase.php'`
* `$vendor_dir . '/arubacao/tld-checker/src/Validator.php'`
* `$this_plugin_dir . '/functions.php`