PHPackages                             mohammadv184/arcaptcha-laravel - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mohammadv184/arcaptcha-laravel

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

mohammadv184/arcaptcha-laravel
==============================

Laravel Package for the ArCaptcha

v1.1.0(4y ago)81813MITPHPPHP &gt;=7.3

Since Aug 9Pushed 4y ago2 watchersCompare

[ Source](https://github.com/mohammadv184/arcaptcha-laravel)[ Packagist](https://packagist.org/packages/mohammadv184/arcaptcha-laravel)[ Docs](https://github.com/mohammadv184/arcaptcha-laravel)[ RSS](/packages/mohammadv184-arcaptcha-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

[![ArCaptcha](resources/images/arcaptcha-logo.png)](resources/images/arcaptcha-logo.png)

Laravel ArCaptcha Package
=========================

[](#laravel-arcaptcha-package)

[![Latest Stable Version](https://camo.githubusercontent.com/05a6e62680b61606cf54b8e2b865fc67df2e7a2d60c8037e20a8496b94aa0144/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f6172636170746368612d6c61726176656c2f76)](https://packagist.org/packages/mohammadv184/arcaptcha-laravel)[![Total Downloads](https://camo.githubusercontent.com/79f1e94fa97159ff3cbcd4b6b46204a4e4385f3df3b700a083eaa97fce63be9c/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f6172636170746368612d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/mohammadv184/arcaptcha-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/cdccf484dec6f31ba4dfde7249359f9b0ce0698e90413b57f10f4d2e28caa601/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f6172636170746368612d6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/mohammadv184/arcaptcha-laravel)[![License](https://camo.githubusercontent.com/437e396f07b144d52d08f6e66630266cd54782b364872b0ade38e44433ca3fd6/687474703a2f2f706f7365722e707567782e6f72672f6d6f68616d6d6164763138342f6172636170746368612d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/mohammadv184/arcaptcha-laravel)

Laravel Package for the ArCaptcha This package supports `PHP 7.3+`.

For **PHP** integration you can use [mohammadv184/arcaptcha](https://github.com/mohammadv184/arcaptcha) package.

List of contents
================

[](#list-of-contents)

- [PHP ArCaptcha Library](#PHP-ArCaptcha-Library)
- [List of contents](#list-of-contents)
    - [Installation](#Installation)
    - [Configuration](#Configuration)
        - [Publish package](#publish-package)
        - [Set the environment](#set-the-environment)
        - [Customize error message](#customize-error-message)
    - [How to use](#how-to-use)
        - [Embed Script in Blade](#Embed-Script-in-Blade)
        - [Form setup](#Form-setup)
        - [Verify submitted data](#Verify-submitted-data)
    - [Credits](#credits)
    - [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require mohammadv184/arcaptcha-laravel
```

Laravel 5.5 (or greater) uses package auto-discovery, so doesn't require you to manually add the Service Provider, but if you don't use auto-discovery ArCaptchaServiceProvider must be registered in config/app.php:

```
'providers' => [
    ...
    Mohammadv184\ArCaptcha\Laravel\ArCaptchaServiceProvider::class,
];
```

You can use the facade for shorter code. Add ArCaptcha to your aliases:

```
'aliases' => [
    ...
    'ArCaptcha' => Mohammadv184\ArCaptcha\Laravel\Facade\ArCaptcha::class,
];
```

Configuration
-------------

[](#configuration)

### Publish package

[](#publish-package)

Create config/arcaptcha.php configuration file using the following artisan command:

```
php artisan vendor:publish --provider="Mohammadv184\ArCaptcha\Laravel\ArCaptchaServiceProvider"
```

### Set the environment

[](#set-the-environment)

Open .env file and set `ARCAPTCHA_SITE_KEY` and `ARCAPTCHA_SECRET_KEY`:

```
# in your .env file
ARCAPTCHA_SITE_KEY=YOUR_API_SITE_KEY
ARCAPTCHA_SECRET_KEY=YOUR_API_SECRET_KEY
```

### Customize error message

[](#customize-error-message)

Before starting please add the validation message to `resources/lang/[LANG]/validation.php` file

```
return [
    ...
    'arcaptcha' => 'Hey!!! :attribute is wrong!',
];
```

How to use
----------

[](#how-to-use)

How to use ArCaptcha in Laravel.

### Embed Script in Blade

[](#embed-script-in-blade)

Insert `@arcaptchaScript` blade directive before closing `` tag.

You can also use `ArCaptcha::getScript()`.

```
>

        ...
        @arcaptchaScript

```

### Form setup

[](#form-setup)

After you have to insert `@arcaptchaWidget` blade directive inside the form where you want to use the field `arcaptcha-token`.

You can also use `ArCaptcha::getWidget()`.

```

    @csrf

    ...
    @arcaptchaWidget

    {!! ArCaptcha::getWidget() !!}

```

### Verify submitted data

[](#verify-submitted-data)

Add `arcaptcha` to your rules

```
$validator = Validator::make(request()->all(), [
        ...
        'arcaptcha-token' => 'arcaptcha',
    ]);

    // check if validator fails
    if($validator->fails()) {
        ...
        $errors = $validator->errors();
    }
```

Credits
-------

[](#credits)

- [Mohammad Abbasi](https://github.com/mohammadv184)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~184 days

Total

2

Last Release

1550d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77800167?v=4)[Mohammad Abbasi](/maintainers/mohammadv184)[@mohammadv184](https://github.com/mohammadv184)

---

Top Contributors

[![mohammadv184](https://avatars.githubusercontent.com/u/77800167?v=4)](https://github.com/mohammadv184 "mohammadv184 (19 commits)")

---

Tags

arcaptchacaptchalaravellaravel-frameworklaravelpackagepersian-captchalaravellaravel-packagecaptchaphp captchalaravel-captchaarcaptchapersian-captcha

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mohammadv184-arcaptcha-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/mohammadv184-arcaptcha-laravel/health.svg)](https://phpackages.com/packages/mohammadv184-arcaptcha-laravel)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[arcaptcha/arcaptcha-laravel

Laravel Package for the ArCaptcha

123.2k](/packages/arcaptcha-arcaptcha-laravel)[imanghafoori/laravel-password-history

A package to keep a history of all password changes of users

70190.9k1](/packages/imanghafoori-laravel-password-history)[rickycezar/laravel-jwt-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

24117.6k](/packages/rickycezar-laravel-jwt-impersonate)[hapidjus/laravel-impersonate-ui

UI for 404labfr/laravel-impersonate

371.5k](/packages/hapidjus-laravel-impersonate-ui)[dsoloview/laravel-yandex-captcha

Yandex captcha integration for Laravel

113.9k](/packages/dsoloview-laravel-yandex-captcha)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
