Download the PHP package lukeyouell/craft-emailvalidator without Composer

On this page you can find all versions of the php package lukeyouell/craft-emailvalidator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-emailvalidator

Email Validator plugin for Craft CMS 3

Email address validation for user registrations, custom forms and more.

Installation

Requirements

This plugin requires Craft CMS 3.0.0, or later.

Plugin Store

Log into your control panel and click on 'Plugin Store'. Search for 'Email Validator'.

Composer

  1. Open your terminal and go to your Craft project:

  2. Then tell Composer to load the plugin:

  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Email Validator.

Configuration

You can toggle which checks are enforced by updating the plugin settings.

The following options are available:

Name Default Description
Typo Check & Suggestions enabled Provide an alternative email suggestion if a typo is detected in the domain part of the email address.
MX Records disabled Allow domains that aren't configured to receive email.
Catch All enabled Allow domains that are configured to catch all incoming mail traffic.
Roles enabled Allow role-based email addresses.
Free Providers enabled Allow email addresses found to be using a free email provider such as Gmail and Yahoo!.
Disposable Providers disabled Allow email addresses found to be using a disposable email provider.

Overriding Plugin Settings

If you create a config file in your config folder called email-validator.php, you can override the plugin's settings in the Control Panel. Since that config file is fully multi-environment aware, this is a handy way to have different settings across multiple environments.

Here's what that config file might look like along with a list of all of the possible values you can override.

Validating Email Addresses

User Management

The plugin will automatically enforce it's validation checks if Verify email addresses? is checked in the user settings.

These settings can be found in Settings > Users > Settings

Templates

You can validate an email address from within your templates by using the following function:

This response will be returned.

Contact Form Plugin

If you have the Contact Form plugin installed you can validate submissions using Email Validator.

Email Validator will automatically detect if this plugin is installed, all you need to do is head to:

Settings → Email Validator → Contact Form

Plugins/Modules

You can also validate an email address from within your own plugins/modules:

This response will be returned.

Response

Properties

email

The email address being validated.

user

The local part of the email address.

domain

The domain of the email address.

did_you_mean

Contains a 'did you mean' suggestion if a potential domain typo has been detected.

format_valid

Returns true or false depending on whether or not the email address format is valid.

mx_found

Returns true or false depending on whether or not MX Records could be found for the requested domain.

catch_all

Returns true or false depending on whether or not the requested email address is found to be part of a catch-all mailbox.

role

Returns true or false depending on whether or not the requested email address is role-based. (e.g. '[email protected]', '[email protected]')

free

Returns true or false depending on whether or not the requested email address is found to be using a free email provider. (e.g. Gmail, Yahoo!)

disposable

Returns true or false depending on whether or not the requested email address is found to be using a disposable email provider.

Email Validator Roadmap

Some things to do, and ideas for potential features:

Brought to you by Luke Youell


All versions of craft-emailvalidator with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lukeyouell/craft-emailvalidator contains the following files

Loading the files please wait ....