PHP code example of warifp / nd-captcha

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

    

warifp / nd-captcha example snippets




use NdCaptcha\NdCaptcha;

$recaptcha = new NdCaptcha(
    '2CAPTCHA_KEY',
    'PAGE_URL',
    'GOOGLE_KEY',
);

$captcha = $recaptcha->init();
var_dump($captcha);