PHPackages                             trustcaptcha/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. trustcaptcha/trustcaptcha-php

Abandoned → [trustcomponent/trustcaptcha-php](/?search=trustcomponent%2Ftrustcaptcha-php)Library[Security](/categories/security)

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

TrustCaptcha for PHP, providing captcha, security features, and GDPR-compliant user verification.

1.2.2(11mo ago)0144Apache-2.0PHPPHP &gt;=7.0

Since Apr 3Pushed 11mo ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (10)Used By (0)

TrustCaptcha for PHP
====================

[](#trustcaptcha-for-php)

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

> ⚠️ **DEPRECATED**
> This package has been renamed and is now maintained as [`trustcomponent/trustcaptcha-php`](https://packagist.org/packages/trustcomponent/trustcaptcha-php) (version 2.0.0 or above). Please update your `composer.json`!

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).

Short example
-------------

[](#short-example)

Here you can see a short code example of a possible integration. Please refer to [our provided documentation](https://docs.trustcomponent.com/en/captcha/backend/integration) for complete and up-to-date integration instructions.

Installing the library

`npm i @trustcaptcha/trustcaptcha-nodejs`

Fetching and handling the result

```
// Retrieving the verification result
let verificationResult = await CaptchaManager.getVerificationResult("", verificationToken);

// Do something with the verification result
if (!verificationResult.verificationPassed || verificationResult.score > 0.5) {
    console.log("Verification failed, or bot score is higher than 0.5 – this could indicate a bot.");
}

```

Installing the library

```
composer require trustcaptcha/trustcaptcha-php

```

Fetching and handling the result

```
// Retrieving the verification result
$verificationResult = null;
try {
  $verificationResult = CaptchaManager::getVerificationResult("", "");
} catch (Exception $e) {
  // Fetch verification result failed - handle error
}

// Do something with the verification result
if (!verificationResult.verificationPassed || verificationResult.score > 0.5) {
    console.log("Verification failed, or bot score is higher than 0.5 – this could indicate a bot.");
}

```

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

29

—

LowBetter than 59% of packages

Maintenance52

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

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

Total

9

Last Release

334d ago

Major Versions

0.0.2 → 1.0.02024-04-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/46445b084ae8b6ff0dfbe996f49e874ad3afb02c707c8db72b16ab432a8c7395?d=identicon)[trustcaptcha](/maintainers/trustcaptcha)

---

Tags

phpsecuritycaptchagdprPHP Libraryprivacyeuspam protectionbot-detectionuser verificationEuropean Uniontrustcaptchabackend-securityserver-securitymade-in-germany

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[s1syphos/php-simple-captcha

Simple captcha generator

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

A simple captcha package that fit to any type of web application built on php.

102.9k](/packages/lorddashme-php-simple-captcha)

PHPackages © 2026

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