vaail/nocaptcha is a Laravel package for no captcha recaptcha for laravel..
It currently has 1 GitHub stars and 181 downloads on Packagist (latest version 1.0.0).
Install it with composer require vaail/nocaptcha.
Discover more Laravel packages by vaail
or browse all Laravel packages to compare alternatives.
Last updated

Add the following line to the require section of composer.json:
{
"require": {
"vaail/no-captcha": "1.*"
}
}
Run composer update.
Add ServiceProvider to the providers array in app/config/app.php.
'Vaail\NoCaptcha\NoCaptchaServiceProvider',
Add NOCAPTCHA_SECRET and NOCAPTCHA_SITEKEY in .env file:
NOCAPTCHA_SECRET=[secret-key]
NOCAPTCHA_SITEKEY=[site-key]
{!! app('captcha')->display(); !!}
Add 'g-recaptcha-response' => 'required|captcha' to rules array.
$validate = Validator::make(Input::all(), [
'g-recaptcha-response' => 'required|captcha'
]);
Checkout example below:
<?php
require_once "vendor/autoload.php";
$secret = '';
$sitekey = '';
$captcha = new \Vaail\NoCaptcha\NoCaptcha($secret, $sitekey);
if ( ! empty($_POST)) {
var_dump($captcha->verifyResponse($_POST['g-recaptcha-response']));
exit();
}
?>
<form action="?" method="POST">
<?php echo $captcha->display(); ?>
<button type="submit">Submit</button>
</form>
https://github.com/vaail/no-captcha/pulls