PHPackages                             castillo-n/recaptcha-v3calls - 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. castillo-n/recaptcha-v3calls

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

castillo-n/recaptcha-v3calls
============================

Three calls, two on the front end, (one for the js, one for the element), and one to verify the recaptcha in the backend

v1.0.1(2y ago)0131MITPHPPHP &gt;=7.0

Since Oct 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/castillo-n/recaptchaV3Calls)[ Packagist](https://packagist.org/packages/castillo-n/recaptcha-v3calls)[ Docs](https://github.com/castillo-n/recaptchaV3Calls)[ RSS](/packages/castillo-n-recaptcha-v3calls/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

recaptchaV3Calls
================

[](#recaptchav3calls)

Making an easy out of the box calls to using googles recaptcha v3 everywhere. To install it:

composer require castillo-n/recaptcha-v3calls

To use it: There are 3 static calls.

backendPHPVerificationCall Pretty explicit. You just use it to verify the recaptcha string. You can send a captcha if you dont want to use the $\_POST or leave it as an empty string, which then will trigger the function to search for the value of the recaptcha inside of the $\_POST As a default the score value to pass is .6, I think googles is .5 you can change it by passing a second parameter with a float value between 0 to 1, the lower you go the easier it gets for a bot to pass it

jsCallInsert Pretty explicit. You just use it to submit the form to the back end and create the captcha

htmlInsideTheFormCallInsert Pretty explicit :). You just use it create the button that google needs to generate the recaptcha when the submit button is pressed, this is important as you have two minutes from the creation to verification, which includes in between the submit step as well. If 2 minutes have passed between the origination of the captcha and the verification of that captcha then you are out of luck and you will have to resubmit the form with a new captcha. This makes it less frustruating to those that do not know about such issue to not have to wonder about why is their form not submitting correctly as it add the captcha creation to the submit button.

The important values to add to your .env file GOOGLE\_RECAPTCHA\_SECRET GOOGLE\_RECAPTCHA\_KEY GOOGLE\_RECAPTCHA\_SCORE names are pretty explicit. secret is the secret key key is the public key and score, is the score you want the user to be over to submit the form correctly If you don't want to use this variables on your env file, then just passed them as a value on the function calls. The following are the function calls and their parameters. htmlInsideTheFormCallInsert($buttonClasses = 'btn btn-light', $buttonText = "Submit", $key = null) jsCallInsert($formId = null, $action = null, $key = null) backendPHPVerificationCall($captcha = '', $wantedScoreValue = 0.7, $secret\_key = null)

To implement it you need to use

use RecaptchaV3Calls\\Recaptcha;

Then call any of the functions, as they are static functions, so you will have to call them in someway like: In the HTML, Blade, Twig file, etc (tags may change based on the platform you are using) but on something like the following (this cant be use on .html or .htm files)

and then in your back end

$didTheCaptchaPassed\_thisIsABoolean = Recaptcha::backendPHPVerificationCall($captcha); //then do whatever you need to do with the verification. the return has two parameters \['success' =&gt; true||false, 'error' =&gt; ''||'the error description'\]

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b76e8efbfe9a28779ed741b80753f21ca88fc4db9caf1682a48668f8d78c3efc?d=identicon)[castillo-n](/maintainers/castillo-n)

---

Top Contributors

[![castillo-n](https://avatars.githubusercontent.com/u/6334155?v=4)](https://github.com/castillo-n "castillo-n (24 commits)")

### Embed Badge

![Health badge](/badges/castillo-n-recaptcha-v3calls/health.svg)

```
[![Health](https://phpackages.com/badges/castillo-n-recaptcha-v3calls/health.svg)](https://phpackages.com/packages/castillo-n-recaptcha-v3calls)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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