Download the PHP package tenderfield/verifyemail without Composer

On this page you can find all versions of the php package tenderfield/verifyemail. 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 verifyemail

VerifyEmail

IMPORTANT Due to multiple requests, I now have a supported private repo for the same code that you can get access to. Visit https://hbattat.com/verifyemail.html for details.

Is a PHP class that can be easily used to verify an email address and make sure it is valid and does exist on the mail server.

This class connects to the mail server and checks whether the mailbox exists or not.

Blog posts:

Description: http://curlybrac.es/2016/07/25/verifyemail-php-class-to-validate-email-address/

How to configure mail server: http://curlybrac.es/2016/07/27/how-to-configure-a-mail-server/

How to install (using composer):

Add the package to composer.json

{
    "require": {
        "hbattat/verifyemail": "<version number>"
    }
}

Then add the autoload to your file:

require 'vendor/autoload.php';

That's all, now you are ready to use that class!

How to use:

Initialize the class:

OR (you can specify other port number than 25)

The first email address '[email protected]' is the one to be checked, and the second '[email protected]' is an email address to be provided to the server. This email needs to be valid and from the same server that the script is running from. To make sure your server is not treated as a spam or gets blacklisted check the score of your server here https://mail-tester.com

Then you call the verify function:

This will return a boolean. True if the email is valid, false otherwise.

If you want to get any errors, call this function after the verify function:

This will return an array of all errors (if any):

If you want to get all debug messages of the connection, call this function:

This will return an array of all messages and values that used during the process.

And to see the raw debug messages of the server commands sent

which will return an array:

Array
(
    [helo] => 250 mx.google.com at your service
    [mail_from] => 250 2.1.0 OK a68si4170774ioe.18 - gsmtp
    [rcpt_to] => 250 2.1.5 OK a68si4170774ioe.18 - gsmtp
    [quit] => 4
)

Other Examples:

You can also modify/set the values of email to verify, verifier email, and port number on the fly after initializing

Notes:


All versions of verifyemail with dependencies

PHP Build Version
Package Version
Requires php Version >= 5
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 tenderfield/verifyemail contains the following files

Loading the files please wait ....