PHPackages                             laravel-hcaptcha/hcaptcha - 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. [Security](/categories/security)
4. /
5. laravel-hcaptcha/hcaptcha

ActiveLibrary[Security](/categories/security)

laravel-hcaptcha/hcaptcha
=========================

4182[1 issues](https://github.com/laravel-hcaptcha/hcaptcha/issues)PHP

Since Apr 5Pushed 6y ago2 watchersCompare

[ Source](https://github.com/laravel-hcaptcha/hcaptcha)[ Packagist](https://packagist.org/packages/laravel-hcaptcha/hcaptcha)[ RSS](/packages/laravel-hcaptcha-hcaptcha/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

hCaptcha (new captcha) [![Packagist License](https://camo.githubusercontent.com/80febbe8b758a168241c0db06d0e2345c53af62b60be2ce15343c810cfad514d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c61726176656c2d68636170746368612f68636170746368612e7376673f7374796c653d666c61742d737175617265)](LICENSE.md) [![For PHP](https://camo.githubusercontent.com/cdc03b34bee04f3c6afe99b47173b09d65b92d88b04aded32b3b8cc5e12ecee9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d4672616d65776f726b25323061676e6f737469632d3446354239332e7376673f7374796c653d666c61742d737175617265)](https://github.com/laravel-hcaptcha/hcaptcha)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#hcaptcha-new-captcha--)

[![Github Workflow Status](https://camo.githubusercontent.com/1989c95c35f7e2c7cc8941e9a340b4215d211396b255dc23b40ca382b66d7329/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c61726176656c2d68636170746368612f68636170746368612f72756e2d74657374733f7374796c653d666c61742d737175617265)](https://github.com/laravel-hcaptcha/hcaptcha/actions)[![Coverage Status](https://camo.githubusercontent.com/cc06e42b53ae66f0ffafdecd7ec045f922aade11b15028849f4639a85d6caa5c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d2f68636170746368612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-hcaptcha/noCAPTCHA/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/af183987bd26ebdc098d85646c7f570ba1d3e1733bc0757e1c5f5a0bc9418d10/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d68636170746368612f68636170746368612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-hcaptcha/noCAPTCHA/?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/32f0a05a9bc3b0d5e1f1585efcd0c4c459d1ae66548191f954d09070dc037d48/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f61653337623463302d353437382d346166622d396137312d3166653535333464386566352e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/ae37b4c0-5478-4afb-9a71-1fe5534d8ef5)[![Github Issues](https://camo.githubusercontent.com/c623fcf01074301a4ada37842a9fc30f2e711f7780b467557b234d9fe674f6d4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d68636170746368612f68636170746368612e7376673f7374796c653d666c61742d737175617265)](https://github.com/laravel-hcaptcha/hcaptcha/issues)

[![Packagist](https://camo.githubusercontent.com/ee39d6d571704b0eab9889a443a2803f7df3ad7b609de7592e086b23759b6831/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b6167652d6c61726176656c2d636170746368612f6e6f2d2d636170746368612d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-hcaptcha/hcaptcha)[![Packagist Release](https://camo.githubusercontent.com/2db47cfcf5b02408e1e35ec9a675e5786496f7b84d4d9670244195812b9664e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d68636170746368612f68636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-hcaptcha/hcaptcha)[![Packagist Downloads](https://camo.githubusercontent.com/8a5cd71379b35707d9c119c92abcf7fbce8240458d1230e757f525fd7f095efc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d68636170746368612f68636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-hcaptcha/hcaptcha)

*By [shirshak55](http://www.github.com/shirshak55)* with &lt;

Please wait for v1 to use. Currently in development. If everything goes ok should be released before end of this month

What is hCaptcha?
-----------------

[](#what-is-hcaptcha)

> hCaptcha is a is a CAPTCHA-like system designed to establish that a computer user is human. The team behind hCaptcha has decades of software and ML expertise and they build and operate massively scalable systems to tackle today's hardest problems.
>
> - [hcaptcha](https://hcaptcha.com)

[![New hCaptcha](https://camo.githubusercontent.com/b7401193470b7c82ae1ab39e62ba9fa2be04189ea31abd8542b6aeb50ee62da0/68747470733a2f2f6173736574732e776562736974652d66696c65732e636f6d2f3563373365376561336638626232613835643237383164622f3564373964616534666564626236363634623834646462335f6368616c6c656e67652d626f756e64696e675f626f782d302e6a7067)](https://camo.githubusercontent.com/b7401193470b7c82ae1ab39e62ba9fa2be04189ea31abd8542b6aeb50ee62da0/68747470733a2f2f6173736574732e776562736974652d66696c65732e636f6d2f3563373365376561336638626232613835643237383164622f3564373964616534666564626236363634623834646462335f6368616c6c656e67652d626f756e64696e675f626f782d302e6a7067)

### Features

[](#features)

- Framework agnostic package.
- Well supported
- Easy setup &amp; configuration.
- Well documented &amp; IDE Friendly.
- Well tested with maximum code quality.
- Laravel `7.x` supported.
- PSR-7 Support (ServerRequest verification).
- Made with ❤️ &amp; ☕.

### Support

[](#support)

Like Spatie I am only supporting above php 7.4 and Laravel Version above 7.

Steps
-----

[](#steps)

1. Installation and Setup

To use hcaptcha, you need to have a `site key` and a `secret key`. [Click here](https://dashboard.hcaptcha.com) to setup a domain and get your keys.

The `site key` is using for the widget and the `secret key` is used to validate the response we get from hcaptcha.

For more details, check the [official documentation](https://docs.hcaptcha.com/).

You can install this package via [Composer](http://getcomposer.org/) by running this command `composer require laravel-hcaptcha/hcaptcha`.

> **NOTE :** The package will automatically register itself if you're using Laravel `>= v5.5`, so you can skip this section.

Once the package is installed, you can register the service provider in `config/app.php` in the `providers` array:

```
'providers' => [
    ...
    LaravelHcaptcha\Hcaptcha\HCaptchaServiceProvider::class,
],
```

2. Configuration

```
// Edit your .env file by adding this two lines and fill it with your keys.

HCAPTCHA_SECRET=your-secret-key
HCAPTCHA_SITEKEY=your-site-key

```

In Laravel you can publish (But is not required usually)

Run `php artisan vendor:publish  --provider="LaravelHCaptcha\Hcaptcha\HcaptchaServiceProvider"` to publish the config file.

Edit the `secret` and `sitekey` values in `config/hcaptcha.php` file: 3. Usage

Example in vanilla php

```
