trustcaptcha logo
PHP Logo

PHP Captcha

A popular scripting language that powers dynamic web pages and platforms like WordPress with a gentle learning curve.Guard PHP sites and plugins with our privacy-friendly CAPTCHA: multi-layered security, WCAG 2.2 accessibility and no tracking, ever.
Contact Sales

TrustCaptcha is the privacy friendly and user focused CAPTCHA for PHP

Security & Bot-ScoreTrustCaptcha combines a proof-of-work with a bot score — similar to the reCAPTCHA score — and custom security configurations for maximum security. Learn more about the CAPTCHA security concept
Privacy Friendly & GDPR-CompliantTrustCaptcha is a privacy-first CAPTCHA solution with a clear focus on data protection and GDPR compliance. Learn more about the GDPR-compliant CAPTCHA
CustomizationAll features of the CAPTCHA widget are fully customizable such as translations or design. The branding or the entire widget can also be hidden. Learn more about the customization
AccessibilityThe CAPTCHA completely dispenses with puzzles or image marking tasks. The CAPTCHA works fully automated and complies with international accessibility standards. Learn more about the accessibility
Contact Sales

Integrate TrustCaptcha in PHP

Integrate TrustCaptcha with PHP quickly and easily into your website, application or platform in just a few steps and effectively protect your online presence and services from bot abuse.

  • 1 – Sign in or sign up

    The first thing you need to do is sign in to your Trustcomponent account. If you do not yet have a Trustcomponent account, you can register with us quickly and easily in just a few steps. After that, go to your dashboard. Here you will see all existing CAPTCHAs and can create new CAPTCHAs.
    TrustCaptcha Signup PageDashboard Page
  • 2 – Choose existing CAPTCHA or create a new CAPTCHA

    If you already have a CAPTCHA that you want to use, skip this step. If you don't have a CAPTCHA yet, create a new CAPTCHA now.Create a new CAPTCHADuring the creation process, select the “TrustCaptcha” product category and choose your preferred pricing plan. If you are not yet sure which pricing plan to choose, no problem! The plan can be extended at any time. Then decide whether you want to start with the 30-day trial version or go straight to a paid subscription. If you want to start directly with a paid CAPTCHA, all you have to do is add your billing details and optionally a payment method and you're ready to go.30-day trail periodIf you opt for the 30-day trial period, you can test CAPTCHA for 30 days risk-free. At the end of the 30-day trial period, CAPTCHA locks itself. During the 30-day trial period or up to 30 days after the end of the trial period, you can unsubscribe from CAPTCHA at any time for a fee or delete it with immediate effect. If you neither subscribe to the CAPTCHA for a fee nor delete it within 30 days of the end of the free trial period, it will be deleted automatically.Non-Commercial PlanIn addition to our standard plans, we also offer a permanently free “Non Commercial“ plan with 1 website and up to 500 free verifications for non-commercial websites and projects.
    Create CAPTCHA pageCAPTCHA overview page
  • 3 – Add your websites and check your credentials

    On the dashboard of your CAPTCHA you will find all the important information, statistics and setting options. Here you will also find your site-key, the secret-key and, if available, the license-key. You will need these later on when integrating your CAPTCHA.Add your websitesYour CAPTCHA may only be accessed by websites that you explicitly authorise. To allow websites to access the CAPTCHA, enter all the websites on which you want to integrate the CAPTCHA in the settings.
    CAPTCHA credentials pageCAPTCHA settings page
  • 4 – Solve the CAPTCHA in your frontend

    Integrate the CAPTCHA widget into your website or app. You can find detailed instructions for the frontend integration in our documentation. The CAPTCHA widget will then be displayed on your website or app.
    trustcaptcha logo
    Prebuild frontend integrationsYou can use one of our pre-built integrations to integrate the CAPTCHA widget into your website or application. If there is no pre-built integration from us for your preferred frontend technology, your software developers can integrate the CAPTCHA themselves using our documentation or ask our support-team for a pre-built integration solution.
    Android Logo
    Angular Logo
    CraftCMS Logo
    Flutter Logo
    iOS Logo
    Javascript Logo
    Joomla Logo
    Keycloak Logo
    React JS Logo
    React Native Logo
    Vue Logo
    WordPress Logo
  • 5 – Validate the CAPTCHA result in your backend

    When the CAPTCHA has finished, take the verification token and send it to your backend. Then retrieve the verification result from our servers and determine your next steps. You can find detailed information on backend integration in our documentation.Basic steps for PHPThe basic steps for your PHP integration are as follows. For detailed instructions, please read our documentation.Install Dependency
    Fetch Result
    Handle Result
    Other backend technology instead of PHP?If you do not want to use PHP or have several backend services you can select a different language or framework here. If there is no pre-built integration from us for your preferred backend technology, your software developers can integrate the CAPTCHA themselves using our documentation or ask our support-team for a pre-built integration solution.
    .Net Logo
    Go Logo
    Groovy Logo
    Java Logo
    Spring Logo
    Kotlin Logo
    NodeJS Logo
    PHP Logo
    Python Logo
    Ruby Logo
    Rust Logo
    Scala Logo
  • 6 – Congratulations 🎉

    You are now protected by TrustCaptcha - congratulations!
    trustcaptcha logo

Do you need more information about the Angular integration?

Frequently Asked Questions

What is a PHP CAPTCHA?
A PHP CAPTCHA is a security widget that asks a web visitor to prove they are human before your PHP-powered page processes a form or other request. It blocks mass sign-ups, spam comments and credential-stuffing bots by requiring each session to generate a valid verification token. Modern solutions, such as TrustCaptcha, perform the check automatically so users are not confronted with puzzle images.
What is the best PHP CAPTCHA?
The best PHP CAPTCHA in 2025 is one that blends multi-layered bot detection with strong privacy safeguards and an effortless user experience. TrustCaptcha combines a dynamically scaled proof-of-work puzzle, an AI-driven bot score and granular security settings, giving it markedly higher detection rates than single-layer Proof-of-Work rivals. Its EU hosting and GDPR-ready contracts make it a popular choice for European sites.
How does a PHP CAPTCHA work?
After you embed the widget client-side, the visitor’s browser solves a short proof-of-work and sends the resulting token to your PHP backend. The backend verifies the token with the CAPTCHA service, receives a human/bot score and decides whether to accept, challenge, or block the request. TrustCaptcha enhances this flow by letting you tune thresholds and threat responses without changing your PHP code.
Do I need a PHP CAPTCHA?
If your PHP site has public forms—sign-ups, logins, contact pages, payment flows—you almost certainly need a CAPTCHA to cut automated abuse. Attackers continuously target European SMEs with credential stuffing and fake registrations that drain resources and expose data. A lightweight CAPTCHA like TrustCaptcha can eliminate most bot traffic without hurting conversions.
Is TrustCaptcha GDPR-compliant?
Yes. TrustCaptcha was built for the EU market: all data is processed on European servers, it stores no cookies, and it offers Data-Processing Agreements and Service-Level Agreements that you can sign online in minutes. This privacy-first design lets you secure forms while staying fully aligned with the General Data Protection Regulation.
Will TrustCaptcha slow down my website?
No. The widget is lightweight, loads asynchronously and starts solving automatically, so there is no extra click or image download for the user. Metrics show it loads up to three times faster and completes seven times sooner than traditional image-based CAPTCHAs, which means higher conversion rates for your forms.
Can I customise the look and language of the CAPTCHA?
Absolutely. TrustCaptcha supports 35+ languages, light, dark or auto themes, custom colours, corner radius, and even a full white-label mode with your own privacy link. You can also switch the widget to an invisible mode that only shows a subtle status badge, keeping your design clean while still blocking bots.

Integrate TrustCaptcha in your PHP application in just a few steps!

Try TrustCaptcha free of chargeNo card required
Contact Sales