PHP code example of juniorb2ss / captcha

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

    

juniorb2ss / captcha example snippets


'providers' => [
    // ....
      Captcha\Laravel\ServicesProvider::class,
    //...
];

'aliases' => [
    //...
    'dbc' => Captcha\Laravel\DeathByCaptchaFacade::class,
    //...
];

use Captcha\DeathByCaptcha\Service;
$dbc = new Service;
$dbc->credentials('yourLogin', 'yourPassword');
$text = $dbc->upload($base64Image);
// looping
echo $text;

$dbc = dbc::credentials('yourLogin', 'yourPassword');
$text = $dbc->upload($base64Image);
// looping
echo $text;