PHPackages                             variotry/laravel-recaptcha-v3-enterprise-rule - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. variotry/laravel-recaptcha-v3-enterprise-rule

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

variotry/laravel-recaptcha-v3-enterprise-rule
=============================================

Laravel validation rule for reCAPTCHA v3 Enterprise

v0.0.3(3mo ago)113MITPHPPHP ^8.2

Since Jan 29Pushed 3mo agoCompare

[ Source](https://github.com/variotry/laravel-recaptcha-v3-enterprise-rule)[ Packagist](https://packagist.org/packages/variotry/laravel-recaptcha-v3-enterprise-rule)[ RSS](/packages/variotry-laravel-recaptcha-v3-enterprise-rule/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (6)Versions (5)Used By (0)

laravel-recaptcha-v3-enterprise-rule
====================================

[](#laravel-recaptcha-v3-enterprise-rule)

reCAPTCHA v3 Enterprise の laravelバリデーションルールを定義

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

[](#installation)

```
composer require variotry/laravel-recaptcha-v3-enterprise-rule
```

設定ファイルと言語ファイルの公開（Publish）
-------------------------

[](#設定ファイルと言語ファイルの公開publish)

パッケージ導入後、必要に応じて設定ファイルや言語ファイルをアプリにコピーできます。

### 設定ファイル（Config）

[](#設定ファイルconfig)

```
php artisan vendor:publish --tag=vt-recaptcha-v3-enterprise:config
```

- コピー先： config/recaptcha-V3-enterprise.php
- ここでログチャネルや ReCAPTCHA サイトキーなどを設定可能
- .env で環境ごとに値を変更できます(以下は設定が必須） ```
    GOOGLE_SERVICE_ACCOUNT_BASE64="サービスアカウントのjsonをbase64変換した文字列"
    RECAPTCHAV3_ENTERPRISE_SITEKEY="recaptcha v3 enterprise版の SiteKey"
    ```
- jsonの base64文字列取得 ```
    base64 -i service_account.json | tr -d '\n'
    ```

### 言語ファイル（Lang）

[](#言語ファイルlang)

```
php artisan vendor:publish --tag=vt-recaptcha-v3-enterprise:lang
```

- コピー先： resources/lang/vendor/variotry/
- バリデーションメッセージや通知文などをカスタマイズ可能

使い方
---

[](#使い方)

バリデーション定義する箇所で

```
use Variotry\Recaptcha\V3\Enterprise\Rules\RecaptchaV3Enterprise;

'g-recaptcha-response' => ['required', new RecaptchaV3Enterprise('login') ]
```

のようにルールを設定。Recapchaルールでは action を指定してください。（サーバー側のルール判定に使われます）

フロントエンド側に関して
------------

[](#フロントエンド側に関して)

npmパッケージ `recaptcha-v3` などを利用してトークン発行し、サーバーに投げて上記ルールを適用してください。

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance79

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

Total

3

Last Release

109d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19729189?v=4)[vario](/maintainers/variotry)[@variotry](https://github.com/variotry)

---

Top Contributors

[![variotry](https://avatars.githubusercontent.com/u/19729189?v=4)](https://github.com/variotry "variotry (11 commits)")

### Embed Badge

![Health badge](/badges/variotry-laravel-recaptcha-v3-enterprise-rule/health.svg)

```
[![Health](https://phpackages.com/badges/variotry-laravel-recaptcha-v3-enterprise-rule/health.svg)](https://phpackages.com/packages/variotry-laravel-recaptcha-v3-enterprise-rule)
```

###  Alternatives

[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[sandermuller/laravel-fluent-validation

Fluent validation rule builders for Laravel

20719.0k4](/packages/sandermuller-laravel-fluent-validation)

PHPackages © 2026

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