PHPackages                             arcaptcha/arcaptcha-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. arcaptcha/arcaptcha-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

arcaptcha/arcaptcha-php
=======================

PHP library for ArCaptcha

1.0.8(1y ago)73.4k↓50%1[2 PRs](https://github.com/arcaptcha/arcaptcha-php/pulls)3MITPHPPHP ^7.3|^8.0

Since Aug 4Pushed 1y agoCompare

[ Source](https://github.com/arcaptcha/arcaptcha-php)[ Packagist](https://packagist.org/packages/arcaptcha/arcaptcha-php)[ Docs](https://github.com/arcaptcha/arcaptcha-php)[ RSS](/packages/arcaptcha-arcaptcha-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (11)Used By (3)

PHP ArCaptcha Library
=====================

[](#php-arcaptcha-library)

[![Latest Stable Version](https://camo.githubusercontent.com/cb5174f470821a2d5f5467ac27ff6402e3d32e214d4a804599e0492c7ebca503/687474703a2f2f706f7365722e707567782e6f72672f6172636170746368612f6172636170746368612d7068702f76)](https://packagist.org/packages/arcaptcha/arcaptcha-php)[![Total Downloads](https://camo.githubusercontent.com/c8ed27c7febf0f8b2daabb63be48c71f3e84b3eb78e3e4407f59063c4a0560a3/687474703a2f2f706f7365722e707567782e6f72672f6172636170746368612f6172636170746368612d7068702f646f776e6c6f616473)](https://packagist.org/packages/arcaptcha/arcaptcha-php)[![Latest Unstable Version](https://camo.githubusercontent.com/b38c6e90d34ce6ac18f092f83279b3a27b23291923b209ea134260e9307212fd/687474703a2f2f706f7365722e707567782e6f72672f6172636170746368612f6172636170746368612d7068702f762f756e737461626c65)](https://packagist.org/packages/arcaptcha/arcaptcha-php) [![License](https://camo.githubusercontent.com/ff03903e2ad1d76d0cbf80be56f4fa87cee628619a25a8204a45404dc25a2f61/687474703a2f2f706f7365722e707567782e6f72672f6172636170746368612f6172636170746368612d7068702f6c6963656e7365)](https://packagist.org/packages/arcaptcha/arcaptcha-php)[![PHP Version Require](https://camo.githubusercontent.com/f29340e3e65789fe8aa6e8f23f28600c2bb85ffee2783db680b6e1e8f785f90c/687474703a2f2f706f7365722e707567782e6f72672f6172636170746368612f6172636170746368612d7068702f726571756972652f706870)](https://packagist.org/packages/arcaptcha/arcaptcha-php)

PHP library for ArCaptcha. This package supports `PHP 7.3+`.

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

[](#list-of-contents)

- [PHP ArCaptcha Library](#PHP-ArCaptcha-Library)
- [List of contents](#list-of-contents)
    - [Installation](#Installation)
    - [Configuration](#Configuration)
    - [How to use](#how-to-use)
        - [Widget usage](#Widget-usage)
        - [Verifying a response](#Verifying-a-response)
    - [Credits](#credits)
    - [License](#license)

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

[](#installation)

Require this package with composer:

```
composer require arcaptcha/arcaptcha-php
```

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

[](#configuration)

You can create a new instance by passing the SiteKey and SecretKey from your API. You can get that at

```
use Mohammadv184\ArCaptcha\ArCaptcha;

$ArCaptcha = new ArCaptcha($siteKey, $secretKey);

// To set options like color,lang,...
$ArCaptcha = new ArCaptcha($siteKey, $secretKey,['lang'=>'en','theme'=>'dark']);
```

*To see available options on widget see [here](https://docs.arcaptcha.ir/docs/configuration#arcaptcha-container-configuration)*

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

[](#how-to-use)

How to use ArCaptcha.

### Widget usage

[](#widget-usage)

To show the ArCaptcha on a form, use the class to render the script tag and the widget.

```

```

*Note: You can pass available widget options like color,lang,... into getWidget function*

### Verifying a response

[](#verifying-a-response)

After the post, use the class to verify the response. You get true or false back:

```
if ($ArCaptcha->verify($_POST["arcaptcha-response"])) {
    echo "OK!";
} else {
    echo "FAILED!";
}
```

### Invisible mode

[](#invisible-mode)

To see how invisible mode is working in this library see this [example](https://github.com/arcaptcha/arcaptcha-php-example/blob/main/without-composer/index-invisible.php)

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

36

—

LowBetter than 82% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 67.6% 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 ~135 days

Recently: every ~199 days

Total

9

Last Release

667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/236f1fc4c525e521b0bd85356d7d628d4af2838e21904080bc107c62882a702f?d=identicon)[arcaptcha](/maintainers/arcaptcha)

---

Top Contributors

[![mohammadv184](https://avatars.githubusercontent.com/u/77800167?v=4)](https://github.com/mohammadv184 "mohammadv184 (23 commits)")[![haji4ref](https://avatars.githubusercontent.com/u/11948290?v=4)](https://github.com/haji4ref "haji4ref (9 commits)")[![taymazmostafaei](https://avatars.githubusercontent.com/u/75164763?v=4)](https://github.com/taymazmostafaei "taymazmostafaei (2 commits)")

---

Tags

phpcaptchaarcaptcha

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[mohammadv184/arcaptcha

PHP library for ArCaptcha

102.3k1](/packages/mohammadv184-arcaptcha)[amirbagh75/smsir-php

Unofficial sms.ir PHP Package

181.2k](/packages/amirbagh75-smsir-php)

PHPackages © 2026

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