PHPackages                             trustcomponent/trustcaptcha-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. trustcomponent/trustcaptcha-php

ActiveLibrary[Security](/categories/security)

trustcomponent/trustcaptcha-php
===============================

TrustCaptcha – Privacy-first CAPTCHA solution for PHP. GDPR-compliant, bot protection made in Europe.

3.0.0(1mo ago)0862↑45.6%3Apache-2.0PHPPHP &gt;=7.4

Since Jun 15Pushed 1mo agoCompare

[ Source](https://github.com/trustcomponent/trustcaptcha-php)[ Packagist](https://packagist.org/packages/trustcomponent/trustcaptcha-php)[ Docs](https://www.trustcomponent.com/en/products/captcha/integrations/php-captcha)[ RSS](/packages/trustcomponent-trustcaptcha-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (7)Used By (3)

[![Packagist](https://camo.githubusercontent.com/2504c55fe462a47b736996e817fc971119d99be401b4582ad3ca92a23f6783ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7472757374636f6d706f6e656e742f7472757374636170746368612d706870)](https://camo.githubusercontent.com/2504c55fe462a47b736996e817fc971119d99be401b4582ad3ca92a23f6783ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7472757374636f6d706f6e656e742f7472757374636170746368612d706870)

TrustCaptcha for PHP — GDPR-compliant, privacy-first CAPTCHA
============================================================

[](#trustcaptcha-for-php--gdpr-compliant-privacy-first-captcha)

Protect websites and apps against bots and spam with a privacy-first, EU-hosted CAPTCHA solution.

What is TrustCaptcha?
---------------------

[](#what-is-trustcaptcha)

TrustCaptcha combines proof-of-work, an AI bot-score and custom security rules to stop automated bot abuse — without image marking or puzzles

Key perks:

- **Privacy-friendly &amp; GDPR-compliant** – data processed exclusively in Europe
- **No visual challenges** – users never label images or solve quizzes
- **Fully themable widget** – matches any brand and design and improves your user flow
- **Conversion-safe** – near-zero user drop-off compared to legacy CAPTCHAs

Read the full [TrustCaptcha product overview](https://www.trustcomponent.com/en/products/captcha) for technical details and the security concept.

Get started
-----------

[](#get-started)

1. **Create an account:** [sign up / sign in](https://id.trustcomponent.com/en/signup).
2. **Choose a CAPTCHA:** pick an existing one or create a new one.
3. **Embed the widget:** implement the TrustCaptcha widget into your website or app.
4. **Validate result:** validate the CAPTCHA verification result in your backend.

Need a walkthrough? See the [PHP integration guide](https://www.trustcomponent.com/en/products/captcha/integrations/php-captcha).

Basic PHP integration
---------------------

[](#basic-php-integration)

1. Install the dependency

```
composer require trustcomponent/trustcaptcha-php:^3.0
```

2. Retrieve the verification result

```
use TrustComponent\TrustCaptcha\TrustCaptcha;

// Retrieving the verification result
$verificationResult = null;
try {
  $trustCaptcha = new TrustCaptcha("");
  $verificationResult = $trustCaptcha->getVerificationResult("");
} catch (Exception $e) {
  // Fetch verification result failed - handle error
}

```

3. Act on the result

```
// Act on the verification result
if (!$verificationResult->verificationPassed || $verificationResult->score > 0.5) {
    echo "Verification failed or bot score > 0.5 – possible automated request.";
}

```

Congratulations — you have successfully validated the result of the CAPTCHA!

**For detailed implementation instructions, [read the PHP integration guide](https://www.trustcomponent.com/en/products/captcha/integrations/php-captcha).**

Other pre-built integrations
----------------------------

[](#other-pre-built-integrations)

TrustCaptcha ships ready-made integrations for popular stacks:

- Platforms like WordPress, Joomla, CraftCMS or Keycloak
- Frontends like JavaScript, Angular, React or Vue.js
- Backends like Node.js, PHP, Python, Java, Ruby, Rust, Go or DotNet
- Mobile Applications like iOS, Android, React Native or Flutter

[Discover all our pre-built Integrations](https://www.trustcomponent.com/en/products/captcha/integrations) on our website.

Get support
-----------

[](#get-support)

Questions? We will be happy to help!

- Email:
- Contact form: [reach the support team](https://www.trustcomponent.com/en/contact-us)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance89

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~81 days

Total

6

Last Release

56d ago

Major Versions

2.0.1 → 3.0.0-beta.02026-05-07

PHP version history (2 changes)2.0.0-beta.0PHP &gt;=7.0

3.0.0-beta.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/216184809?v=4)[TrustComponent](/maintainers/trustcomponent)[@trustcomponent](https://github.com/trustcomponent)

---

Tags

antispambot-detectionbot-protectioncaptchacaptcha-recaptchagdpr-compliantmade-in-europeprivacy-focusedtrustcaptchaphpcaptchaanti-spamgdprprivacybot-protectionEuropespam protectionbot-detectionuser verificationtrustcaptchacaptcha-servicemade-in-europe

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/trustcomponent-trustcaptcha-php/health.svg)

```
[![Health](https://phpackages.com/badges/trustcomponent-trustcaptcha-php/health.svg)](https://phpackages.com/packages/trustcomponent-trustcaptcha-php)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[s1syphos/php-simple-captcha

Simple captcha generator

2740.9k11](/packages/s1syphos-php-simple-captcha)[fabianwennink/iconcaptcha

IconCaptcha is a self-hosted, customizable, easy-to-implement and user-friendly captcha.

18257.5k1](/packages/fabianwennink-iconcaptcha)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
