PHPackages                             myra-security-gmbh/eu-captcha - 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. myra-security-gmbh/eu-captcha

ActiveLibrary[Security](/categories/security)

myra-security-gmbh/eu-captcha
=============================

EU captcha protects your website/API against abuse like form spam and credential stuffing

v2.0.0(2mo ago)04PHPPHP &gt;=8.0

Since Feb 3Pushed 2mo agoCompare

[ Source](https://github.com/Myra-Security-GmbH/eu-captcha-php)[ Packagist](https://packagist.org/packages/myra-security-gmbh/eu-captcha)[ RSS](/packages/myra-security-gmbh-eu-captcha/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

EU-Captcha PHP client
=====================

[](#eu-captcha-php-client)

Privacy-first, no-cookie, no-manual-interaction bot protection for PHP 8.0+ applications. Automatically filters bots, spam, and credential-stuffing attempts without requiring any user interaction.

Requirements
------------

[](#requirements)

- PHP 8.0 or later
- [Guzzle](https://docs.guzzlephp.org/) (`guzzlehttp/guzzle` ^6.0 or ^7.0)

Installation
------------

[](#installation)

> **Note:** This package requires PHP 8.0 or newer. If you are running PHP 5.0–7.x, use [`myra-security-gmbh/eu-captcha-old`](https://packagist.org/packages/myra-security-gmbh/eu-captcha-old) instead, which supports PHP 5.0+ via `file_get_contents()`.

```
composer require myra-security-gmbh/eu-captcha
```

Getting credentials
-------------------

[](#getting-credentials)

1. Register at [app.eu-captcha.eu](https://app.eu-captcha.eu/user-registration)
2. Create a site and copy the **sitekey** and **secret** from the dashboard

Quick start
-----------

[](#quick-start)

> **Using a SPA framework?** The script tag and `` approach below is for server-rendered pages. If you are building with React, Vue, or Angular, use the matching npm package for the frontend widget and continue to use this package for server-side verification only. See [SPA integration guides](https://docs.eu-captcha.eu/integration/spa/) for details.

Add the widget script to any page that contains a form you want to protect:

```

```

Place the widget inside your form:

```

```

Verify the submitted token on your server:

```
