PHP code example of troidcz / verify-email

1. Go to this page and download the library: Download troidcz/verify-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/ */

    

troidcz / verify-email example snippets


 
$verifyEmailHelper->generateSignature('Front:Sign:activation', $user->getId(), $user->getEmail());

 
$verifyEmailHelper->validateEmailConfirmation($this->getHttpRequest()->getUrl()->getAbsoluteUrl(), $user->getId(), $user->getEmail());

/** popripade je mozne vyuzit zkracenejssi zpusob */
$verifyEmailHelper->validateRequestEmailConfirmation($this->getHttpRequest(), $user->getId(), $user->getEmail());