Download the PHP package davidt-de/kirby-uniform-mosparo without Composer
On this page you can find all versions of the php package davidt-de/kirby-uniform-mosparo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davidt-de/kirby-uniform-mosparo
More information about davidt-de/kirby-uniform-mosparo
Files in davidt-de/kirby-uniform-mosparo
Package kirby-uniform-mosparo
Short Description Mosparo spam protection for Kirby Uniform forms
License MIT
Homepage https://github.com/davidt-de/kirby-uniform-mosparo
Informations about the package kirby-uniform-mosparo
Kirby Uniform Mosparo
Privacy-friendly, GDPR-compliant spam protection for Kirby Uniform forms using Mosparo.
What is this?
This plugin integrates Mosparo spam protection with Kirby Uniform forms. Mosparo is an open-source, privacy-focused alternative to reCAPTCHA, hCaptcha, and Cloudflare Turnstile.
Why Mosparo?
- GDPR Compliant: No external tracking, no cookies, no personal data collection
- Privacy First: Unlike Google reCAPTCHA, Mosparo doesn't track users across the web
- Open Source: Self-hostable, transparent code, no vendor lock-in
- Lightweight: Minimal JavaScript, fast loading times
- Customizable: Match the widget appearance to your site's design
Key Features
- 🔒 Server-side verification with Mosparo API
- 🛡️ Bypass protection (bots can't skip the widget)
- 🎨 Checkbox and invisible verification modes
- 📝 Automatic handling of password fields and CSRF tokens
- 🌍 German and English translations included
- ⚡ Zero-dependency frontend (loads Mosparo JS directly)
- 🔧 Configurable via Kirby options
Requirements
- PHP 8.0 or higher
- Kirby CMS 3.5+, 4.x, or 5.x
- Kirby Uniform plugin ^5.0
- A Mosparo account (mosparo.io or self-hosted)
Installation
Via Composer (Recommended)
The plugin is automatically installed as a kirby-plugin type package via Kirby's official plugin installer.
Via Kirby CLI
Manual Installation
- Download the latest release from GitHub
- Extract to
site/plugins/uniform-mosparo/ - Run
composer installinside the plugin directory
Quick Start
1. Configure Mosparo
Add your Mosparo credentials to site/config/config.php:
Get your credentials from your Mosparo project dashboard (Settings → API Keys).
2. Add the Guard to Your Form
In your form controller, add the Mosparo guard:
3. Add the Widget to Your Template
In your template file (e.g., templates/contact.php):
Important: The mosparoInit() call is required for the widget to work. Unlike some other CAPTCHA services, Mosparo does not auto-detect the widget container and must be explicitly initialized with JavaScript.
That's it! Your form is now protected by Mosparo.
What is Mosparo?
Mosparo is a modern, open-source spam protection system designed with privacy in mind.
How It Works
- Invisible Protection: Mosparo analyzes user behavior (mouse movements, keystrokes, timing) to distinguish humans from bots
- Checkbox Mode: Users see a simple checkbox (like "I'm not a robot") only when suspicious activity is detected
- No Tracking: Unlike reCAPTCHA, Mosparo doesn't set cookies or track users across websites
- GDPR Compliant: No personal data is collected or stored
Mosparo vs Alternatives
| Feature | Mosparo | reCAPTCHA | hCaptcha | Turnstile |
|---|---|---|---|---|
| Open Source | ✅ | ❌ | ❌ | ❌ |
| Self-Hostable | ✅ | ❌ | ❌ | ❌ |
| GDPR Compliant | ✅ | ⚠️ | ⚠️ | ⚠️ |
| No User Tracking | ✅ | ❌ | ❌ | ❌ |
| Free Tier | ✅ | ✅ | ✅ | ✅ |
Getting a Mosparo Account
You have two options:
- Managed Service: Sign up at mosparo.io (free tier available)
- Self-Hosted: Install Mosparo on your own server (installation guide)
Documentation
- Configuration Reference – All available options and defaults
- Usage Examples – Advanced form patterns and customizations
- Migration Guide – Switching from reCAPTCHA, hCaptcha, or Turnstile
- Troubleshooting – Common errors and solutions
- Changelog – Version history and release notes
Migrating from Other CAPTCHA Services?
If you're currently using reCAPTCHA, hCaptcha, or Cloudflare Turnstile, check out the Migration Guide for step-by-step instructions on switching to Mosparo. The guide includes:
- Side-by-side code comparisons (before/after)
- Field mapping reference for token names
- Data attributes comparison for styling options
- Testing checklist to verify your migration
Security
- Private keys are never exposed to the frontend
- Server-side verification prevents bypass attacks
- Automatic sanitization of form data before API submission
- Error messages don't leak sensitive configuration details
Contributing
Contributions are welcome! Please read our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the Kirby community
If you find this plugin useful, please consider starring the repository and sharing your feedback.