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.

2.0.1(3mo ago)0151—0%3Apache-2.0PHPPHP &gt;=7.0

Since Jun 15Pushed 3mo 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 1mo ago

READMEChangelogDependencies (2)Versions (5)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
```

2. Retrieve the verification result

```
// Retrieving the verification result
$verificationResult = null;
try {
  $verificationResult = CaptchaManager::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

36

—

LowBetter than 82% of packages

Maintenance81

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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 ~80 days

Total

4

Last Release

98d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9716eeb70907a20608987efd0e6262a5288fc4b083d30c1737120212cc2ca62f?d=identicon)[trustcomponent](/maintainers/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

[s1syphos/php-simple-captcha

Simple captcha generator

2737.8k6](/packages/s1syphos-php-simple-captcha)[fabianwennink/iconcaptcha

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

17740.5k1](/packages/fabianwennink-iconcaptcha)

PHPackages © 2026

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