PHP code example of ziming / laravel-email-sniper-link
1. Go to this page and download the library: Download ziming/laravel-email-sniper-link 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/ */
ziming / laravel-email-sniper-link example snippets
use Ziming\LaravelEmailSniperLink\LaravelEmailSniperLink;
// This just do a quick guess based on the ending email address such as gmail.com, outlook.com, icloud.com etc.
LaravelEmailSniperLink::getSniperLinkQuick('[email protected]', '[email protected]')
// This will do a more accurate guess by not only checking the ending email address but also the MX record of the email address
// if the email address domain is not 1 of the common ones.
// Which is more useful for business emails. But it does make network calls to fetch the MX records, so it is a little slower
LaravelEmailSniperLink::getSniperLink('[email protected]', '[email protected]')
// This just do a quick guess based on the ending email address such as gmail.com, outlook.com, icloud.com etc.
email_sniper_link_quick(string $receiverEmail, ?string $fromEmail = null);
// This will do a more accurate guess by not only checking the ending email address but also the MX record of the email address
// if the email address domain is not 1 of the common ones.
// Which is more useful for business emails. But it does make network calls to fetch the MX records, so it is a little slower
email_sniper_link(string $receiverEmail, ?string $fromEmail = null);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.