trustcaptcha/trustcaptcha-php
最新稳定版本:1.2.2
Composer 安装命令:
composer require trustcaptcha/trustcaptcha-php
包简介
TrustCaptcha for PHP, providing captcha, security features, and GDPR-compliant user verification.
关键字:
README 文档
README
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 astrustcomponent/trustcaptcha-php(version 2.0.0 or above). Please update yourcomposer.json!
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 & 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 for technical details and the security concept.
Get started
- Create an account: sign up / sign in.
- Choose a CAPTCHA: pick an existing one or create a new one.
- Embed the widget: implement the TrustCaptcha widget into your website or app.
- Validate result: validate the CAPTCHA verification result in your backend.
Need a walkthrough? See the PHP integration guide.
Short example
Here you can see a short code example of a possible integration. Please refer to our provided documentation 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("<your_secret_key>", 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("<your_secret_key>", "<verification_token_from_your_client>");
} 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
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 on our website.
Get support
Questions? We will be happy to help!
- Email: mail@trustcomponent.com
- Contact form: reach the support team
trustcaptcha/trustcaptcha-php 适用场景与选型建议
trustcaptcha/trustcaptcha-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 144 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「security」 「captcha」 「privacy」 「eu」 「php-library」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 trustcaptcha/trustcaptcha-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 trustcaptcha/trustcaptcha-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 trustcaptcha/trustcaptcha-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
Provide a way to secure accesses to all routes of an symfony application.
Two Captcha
It's a barebone security class written on PHP
Laravel 5 Securimage helper
Contao CMS integrity check for some files
统计信息
- 总下载量: 144
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-04-03