| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | 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
    );
}
|  Files (9) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (2 files, 4 directories) | ||||
|  composer.json | Data | Auxiliary data | ||
|  LICENSE | Lic. | License text | ||
|  readme.md | Doc. | Documentation | ||
|  Files (9) | / | src | 
| File | Role | Description | ||
|---|---|---|---|---|
|  config (1 file) | ||||
|  Facades (1 file) | ||||
|  Http (1 directory) | ||||
|  routes (1 file) | ||||
|  Recaptcha.php | Class | Class source | ||
|  RecaptchaServiceProvider.php | Class | Class source | ||
|  Files (9) | / | src | / | Http | / | Controllers | 
| File | Role | Description | 
|---|---|---|
|  RecaptchaController.php | 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. | 
|  Install with Composer | 
| 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.
 If you know an application of this package, send a message to the author to add a link here.