A PHP client library for Google's reCAPTCHA service to verify user responses and protect websites from spam.
reCAPTCHA PHP client library is an official PHP package that handles server-side verification for Google's reCAPTCHA service. It allows PHP developers to easily validate user responses from reCAPTCHA challenges to protect their websites from spam, bots, and abuse. The library supports both reCAPTCHA v2 (traditional CAPTCHAs) and v3 (score-based invisible verification).
PHP developers building web applications that need spam protection, particularly those using Google's reCAPTCHA service for form submissions, login pages, or any user interaction points.
Developers choose this library because it's the official, maintained PHP client from Google, ensuring compatibility and reliability with the reCAPTCHA API. It simplifies the verification process with a clean object-oriented interface while providing flexibility for different hosting environments and reCAPTCHA versions.
PHP client library for reCAPTCHA, a free service to protect your website from spam and abuse.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Maintained by Google, ensuring reliable updates and compatibility with reCAPTCHA APIs, reducing integration risks.
Handles both v2 (checkbox/invisible) and v3 (score-based) reCAPTCHA types, allowing flexible implementation based on project needs as per the README.
Supports cURL, sockets, or PHP streams for API calls, adapting to various server environments, which is detailed in the alternate request methods section.
Allows setting hostnames, APK packages, actions, score thresholds, and timeouts, providing fine-grained control over verification as shown in usage examples.
Only handles server-side verification; developers must manually implement and manage the frontend reCAPTCHA widget, increasing development overhead.
Requires PHP 8 or higher for versions 1.3+, forcing upgrades for legacy systems stuck on older PHP versions, as noted in the support section.
Does not support reCAPTCHA Enterprise features like advanced risk analysis, requiring a separate client library for those needs, as mentioned in the README note.