PHP code example of kodedrop / recaptchav2

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

    

kodedrop / recaptchav2 example snippets



use Kodedrop\reCaptchaV2\reCaptchaV2;


# insert in html head area 

  echo reCaptchaV2::Script(); 

reCaptchaV2::Create('SiteKey','class','styles');

//class And styles optional parameter

//add class like 

reCaptchaV2::Create('SiteKey','mb-5 bg-danger'); //bs5-classess and also use custom classes

//add style like 
reCaptchaV2::Create('SiteKey','','border:1px solid #333;background-color:#fff;');