PHPackages                             vaail/nocaptcha - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vaail/nocaptcha

ActiveLibrary

vaail/nocaptcha
===============

No CAPTCHA reCAPTCHA For Laravel.

1.0.0(8y ago)1181MITPHPPHP &gt;=5.4.0

Since Aug 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vaail/no-captcha)[ Packagist](https://packagist.org/packages/vaail/nocaptcha)[ RSS](/packages/vaail-nocaptcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

No CAPTCHA reCAPTCHA
====================

[](#no-captcha-recaptcha)

[![recaptcha_anchor 2x](https://cloud.githubusercontent.com/assets/1529454/5291635/1c426412-7b88-11e4-8d16-46161a081ece.gif)](https://cloud.githubusercontent.com/assets/1529454/5291635/1c426412-7b88-11e4-8d16-46161a081ece.gif)

Installation
------------

[](#installation)

Add the following line to the `require` section of `composer.json`:

```
{
    "require": {
        "vaail/no-captcha": "1.*"
    }
}
```

Run `composer update`.

Laravel 5
---------

[](#laravel-5)

### Setup

[](#setup)

Add ServiceProvider to the providers array in `app/config/app.php`.

```
'Vaail\NoCaptcha\NoCaptchaServiceProvider',

```

### Configuration

[](#configuration)

Add `NOCAPTCHA_SECRET` and `NOCAPTCHA_SITEKEY` in **.env** file:

```
NOCAPTCHA_SECRET=[secret-key]
NOCAPTCHA_SITEKEY=[site-key]

```

### Usage

[](#usage)

##### Display reCAPTCHA

[](#display-recaptcha)

```
{!! app('captcha')->display(); !!}
```

##### Validation

[](#validation)

Add `'g-recaptcha-response' => 'required|captcha'` to rules array.

```
$validate = Validator::make(Input::all(), [
	'g-recaptcha-response' => 'required|captcha'
]);
```

Without Laravel
---------------

[](#without-laravel)

Checkout example below:

```
