# google/recaptcha

PHP client library for reCAPTCHA, a free service to protect your website from spam and abuse.

Repository: https://github.com/google/recaptcha
Canonical: https://ross.abutalabs.com/products/recaptcha
Homepage: http://www.google.com/recaptcha/
Language: PHP
License: BSD-3-Clause
License Family: permissive
Topics: recaptcha, spam, abuse
Last push: 2026-04-28T14:24:33+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 79, release rhythm 81, longevity 100
- inputs: {"age_days": 4355, "days_push": 127, "days_rel": 128, "gap_med": 0, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3574, forks 774 (observed 2026-08-28T04:08:10.806488+00:00)

## What it is
Google's official PHP client library for verifying reCAPTCHA responses server-side, supporting both reCAPTCHA v2 and v3. It wraps the verification API call needed to validate user responses and your secret key.

## Use cases
- verify recaptcha responses in a php form handler
- protect a php website from spam and bot submissions
- integrate recaptcha v3 score verification server-side
- add captcha validation to a php login or signup flow
- block abusive automated traffic on a php backend

## When to choose
- your backend is PHP and you use Google reCAPTCHA v2 or v3
- you want the official, maintained client instead of hand-rolling the verification HTTP call
- you need a simple Composer-installable library with PSR-4 autoloading

## When to avoid
- you use reCAPTCHA Enterprise (use the Google Cloud Recaptcha Enterprise PHP client instead)
- your backend is not PHP
- you need a self-hosted CAPTCHA solution independent of Google

## Facets
- artifact type: library
- maturity: active
- function: security, http-client, sdk
- domain: security, web-development, backend
- platform: php
- tags: recaptcha, captcha, spam-protection, bot-detection, form-verification, web-server

## Member repositories
- google/recaptcha (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:10.806488+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:34:04.029283+00:00, confidence not recorded.
  - readme: https://github.com/google/recaptcha (fetched 2026-08-28T04:08:10.806488+00:00, sha cb0e2ebf705c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
