1. Go to this page and download the library: Download cse/helpers-email library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cse / helpers-email example snippets
switch (true) {
case Email::is($emial):
break;
case Email::exist($emial):
$emial = Email::extract($emial);
break;
default:
new Exception('Email is not exist');
}
$emial = Email::hide($emial);