Skip to content

Framework Integrations

This section covers integration recipes for popular backend frameworks. Unlike the CMS / Platforms section — where ready-made plugins handle the wiring for you — framework integrations are recipes: you use the existing language SDK and plug it into your framework’s idiomatic patterns (form requests, middleware, validators, …).

Use this section if you’re building your own application and want to know where the TrustCaptcha verification call belongs in your framework’s request flow.


Every recipe follows the same shape:

  1. Embed the frontend widget so the verification token is sent with each form submission.
  2. Install the language SDK (e.g. PHP, JVM, Node.js, …) used by your framework.
  3. Validate the token in your controller — a 5-minute, copy-and-paste integration with the API key inline.
  4. Optional: Refactor for reuse — extract the verification into a framework-idiomatic abstraction (form rule, validator, middleware, guard, …) for projects with multiple protected routes.

Steps 1 + 2 are identical to what’s described in the Widget Overview and Result Validation. The recipes on this section’s pages focus on the framework-idiomatic answer to steps 3 + 4 — and the small gotchas typical for that framework (CSRF interactions, dependency injection, async support, etc.).