PHP code example of buyownex / recaptcha

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

    

buyownex / recaptcha example snippets


use Ilya\Recaptcha\RecaptchaRule as Recaptcha;

// in a method...
$data = request()->validate([
    recaptcha_input() => ['

'custom' => [
    // other stuff...

    recaptcha_input() => [
        '
html
<body>
    <form method="POST" action="...">
        {{ csrf_field() }}
        {{ recaptcha() }}

        <button>Send</button>
    </form>

    {{ recaptcha_script() }}
</body>