PHPackages                             piliugin/yii2-recaptcha3 - 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. piliugin/yii2-recaptcha3

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

piliugin/yii2-recaptcha3
========================

Yii2 component for Google Recaptcha v3

1.0.1(6y ago)06Apache-2.0PHPPHP &gt;=5.6

Since Oct 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/piliugin/yii2-recaptcha3)[ Packagist](https://packagist.org/packages/piliugin/yii2-recaptcha3)[ RSS](/packages/piliugin-yii2-recaptcha3/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

yii2-recaptcha3
===============

[](#yii2-recaptcha3)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require piliugin/yii2-recaptcha3 "*"

```

or add

```
"piliugin/yii2-recaptcha3": "*"

```

to the require section of your `composer.json` file and run `composer update`.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

add this to your components main.php

```
'components' => [
    ...
    'recaptcha' => [
        'class' => 'piliugin\recaptcha3\Recaptcha',
        'site_key' => '###',
        'secret_key' => '###',
    ],
    ...
```

and in your model:

`acceptanceScore` is the minimum score for this request (0.0 - 1.0). Default is 0.5.

`actionName` is the name of action that you send to google to get `captchaToken` on frontend (see [Frontend integration](https://developers.google.com/recaptcha/docs/v3))

```
public $captchaToken;

public function rules()
{
    return [
        ...
        [
            ['captchaToken'],
            RecaptchaValidator::class,
            'action' => 'yourActionName',
            'acceptanceScore' => 0.4,
        ],
    ];
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~0 days

Total

2

Last Release

2411d ago

PHP version history (2 changes)1.0.0PHP ^5.6

1.0.1PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fef000a3bc31e74dc728df69b76334e5589f5c17bc55e50f3e42119936dc855?d=identicon)[piliugin](/maintainers/piliugin)

---

Top Contributors

[![piliugin](https://avatars.githubusercontent.com/u/9514414?v=4)](https://github.com/piliugin "piliugin (1 commits)")

### Embed Badge

![Health badge](/badges/piliugin-yii2-recaptcha3/health.svg)

```
[![Health](https://phpackages.com/badges/piliugin-yii2-recaptcha3/health.svg)](https://phpackages.com/packages/piliugin-yii2-recaptcha3)
```

###  Alternatives

[torann/registry

Laravel registry manager for application configurations

222.0k](/packages/torann-registry)

PHPackages © 2026

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