PHP code example of skuz-ko / php-email-open-bot-detection

1. Go to this page and download the library: Download skuz-ko/php-email-open-bot-detection 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/ */

    

skuz-ko / php-email-open-bot-detection example snippets




$detector = new SkuzKo\PhpEmailOpenBotDetection\EmailOpenBotDetector();

if ($detector->isBot($_SERVER['HTTP_USER_AGENT'])) {
    // Handle bot
} else {
    // Handle real user
}