PHP code example of dazza-dev / laravel-captcha-solver
1. Go to this page and download the library: Download dazza-dev/laravel-captcha-solver 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/ */
dazza-dev / laravel-captcha-solver example snippets
use DazzaDev\LaravelCaptchaSolver\CaptchaSolverClient;
public function solveReCaptcha(): mixed
{
$solver = new CaptchaSolverClient();
return $solver->solveReCaptchaV2('websiteUrl', 'websiteKey');
}
public function solveReCaptcha(): mixed
{
return app('captcha_solver')->solveReCaptchaV2('websiteUrl', 'websiteKey');
}