google/cloud-recaptcha-enterprise
Official Google Cloud PHP client for reCAPTCHA Enterprise, letting Laravel and PHP apps create assessments, manage site keys, and verify tokens through the Google Cloud API.
createAssessment per-action, you can instrument specific surfaces — signup, login, checkout, promo redemption, review submission, password reset — rather than gating the whole app. That's a product decision about conversion loss vs. abuse loss, and this library makes per-surface scoring cheap to prototype.annotateAssessment feedback loop needed to tune it over time.createSiteKey, listKeys, getKey). That supports shipping separate keys per platform (web/iOS/Android) and per environment, which is a real operational decision when you don't want prod keys in staging.Adopt the underlying service when:
Look elsewhere when:
Treat the package signal itself with care: 13 stars and zero dependents is not a viability problem — it's an auto-generated Google client with a regular release cadence, and its reliability comes from the release pipeline, not the community. But it does mean you will find no Laravel-specific examples, no Stack Overflow corpus, and no third-party tutorials. Your team's onboarding cost is on you.
To executives: This is Google's official PHP client for reCAPTCHA Enterprise, their paid bot and fraud detection service. It is a component, not a product — roughly a week of engineering to wrap it into something our application can use cleanly. The business case is not the library; it's whether abuse is currently costing us more than the assessments and the integration. Bring numbers: fake account volume, chargeback rate from card testing, promo leakage, support hours on spam. If those are small, we should stay on the free tier or Turnstile and revisit. If they're material, this gives us graded risk scores, a tuning loop, and account-takeover signals we cannot get from reCAPTCHA v3.
To engineering: Low-level generated client — auth via ADC, gRPC with REST fallback, one class per API surface. No framework integration is provided or implied. We'd own: a thin service wrapper, a form-request validation rule, secrets handling for site/API keys, an explicit timeout and fail-open vs. fail-closed decision per endpoint, and structured logging of score + action + outcome so we can tune thresholds. Also flag the extra network hop on protected paths — it's on the critical path for checkout and login, so it needs latency budgets and a circuit breaker. And note the vendor lock-in: credentials, billing, and data flow all land in GCP.
The recommendation in one line: pilot on a single high-abuse surface (signup or login) behind a feature flag, instrument allow/challenge/block outcomes for 30 days, then decide on broader rollout based on measured abuse reduction against conversion impact. Don't adopt org-wide on the strength of the vendor's brand alone.
How can I help you explore Laravel packages today?