google/recaptcha

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 51 minutes ago
Type:Library / SDKCategory(s):Identity, Auth & SecretsSecurity & Privacy
Added to GitGenius on September 19th, 2026
Created on September 30th, 2014
Open Issues & Pull Requests: 6 (+0)
GitHub issues: Enabled
Number of forks: 772
Total Stargazers: 3,578 (+0)
Total Subscribers: 119 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 99.8 days
Mean response time: 505.2 days
90th percentile: 1674.8 days
Tracked items: 144

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 120 days
Stale 30+ days: 3
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • service discussion (44)
  • widget (30)
  • question (16)
  • php (13)
  • enhancement (4)
  • bug (2)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

reCAPTCHA is a PHP client library that wraps the server-side verification step for Google's reCAPTCHA service, protecting websites from spam and abuse.

The library solves the problem of validating reCAPTCHA responses on the server side. After a user completes a reCAPTCHA challenge on your frontend, the service returns a response token. This library takes that token along with your secret key and verifies it against Google's servers, confirming the user passed the challenge legitimately. It supports both reCAPTCHA v2 and v3, each with different validation approaches.

Developers integrating reCAPTCHA into PHP applications should use this library for server-side verification. It suits any PHP project needing bot protection, from traditional web applications to mobile backends. The library provides methods to enforce additional validation rules: hostname verification for web applications, APK package name verification for Android apps, action matching for v3, score thresholds for v3's risk-based approach, and challenge timeout enforcement. These can be chained together for flexible configuration. For reCAPTCHA Enterprise deployments, Google provides a separate client library.

The project maintains active support for modern PHP versions, having moved to PHP 8 and above while keeping earlier releases available for legacy environments. Installation is straightforward through Composer or direct download, with PSR-4 compliant class structure. The library is installable via Packagist and includes an autoloader for manual integration.