| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 32 | All time: 11,115 This week: 71 | ||||
| Version | License | PHP version | Categories | |||
| laravel-recaptcha 1.0.1 | Custom (specified... | 5 | PHP 5, User Management, Validation |
| Description | Author | |
This package can validate human users using Recaptcha API. |
composer require isaeken/recaptcha
<form action="?" method="GET">
@csrf
<img src="{{ route('isaeken.recaptcha.image') }}" />
<input type="text" name="value">
<button submit>Check</button>
</form>
public function index(Request $request)
{
$recaptcha = new Recaptcha;
$recaptcha->draw();
$recaptcha->setSession();
$recaptcha->dark(); // optional
return $recaptcha->response();
}
public function index(Request $request)
{
$request->validate([
'value' => 'required|recaptcha'
]);
return 'ok';
}
public function index(Request $request)
{
$validate = IsaEken\Recaptcha\Recaptcha::validate(
$request->get('value'),
0, // tolerance,
false // ignore uppercase or lowercase
);
// or
$validate = IsaEken\Recaptcha\Recaptcha::validateOnce(
$request->get('value'),
0, // tolerance,
false // ignore uppercase or lowercase
);
}
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| / | src |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Class | Class source | ||
| |
Class | Class source | ||
| / | src | / | Http | / | Controllers |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.