Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Captcha Bundle

Captcha Bundle Laravel Package

ady/captcha-bundle

Laravel bundle providing CAPTCHA integration to protect forms from bots. Includes configurable drivers, easy validation rules, and middleware-friendly setup. Helps reduce spam on logins, registrations, contact forms, and other public endpoints.

View on GitHub
Deep Wiki
Context7

User and privacy friendly captcha for your Symfony project

Frequently asked questions about Captcha Bundle
Can I use ady/captcha-bundle directly in Laravel without Symfony?
No, this package is designed for Symfony and relies on its event system, Twig integration, and dependency injection. You’d need to create middleware or abstraction layers to bridge Symfony components (like EventDispatcher) with Laravel’s ecosystem, which adds complexity.
What Laravel alternatives exist for CAPTCHA protection?
For Laravel, consider native solutions like verified middleware, honeypot packages (e.g., spatie/laravel-honeypot), or third-party CAPTCHA services (e.g., google/recaptcha). These integrate seamlessly without Symfony dependencies.
How do I configure CAPTCHA drivers in this bundle for Laravel?
The bundle supports configurable drivers (e.g., math, image-based), but you’d need to rewrite the Symfony-specific configuration logic. Laravel’s service container can bind driver classes manually, but this requires adapting the bundle’s configuration files.
Does this package support Laravel’s Blade templating instead of Twig?
No, the bundle uses Twig for rendering CAPTCHA challenges. You’d need to replace Twig templates with Blade views or use a templating adapter, which may require modifying the bundle’s core rendering logic.
Is this bundle actively maintained for Laravel compatibility?
The package is maintained for Symfony, but Laravel integration isn’t a focus. Future updates may break existing abstractions, so you’d need to monitor changes and manually sync with Laravel’s ecosystem.
Can I use this for API endpoints, not just forms?
The bundle’s primary use case is form protection, but you could adapt its validation logic for APIs. However, Laravel’s built-in tools (e.g., rate limiting, CSRF tokens) or packages like laravel-honeypot may offer better API-specific solutions.
How do I handle CAPTCHA token storage in Laravel?
The bundle likely uses Symfony’s database layer (e.g., Doctrine ORM). You’d need to replace this with Laravel’s Eloquent or query builder, requiring changes to the bundle’s storage and validation logic.
What’s the performance impact of using this bundle in Laravel?
Middleware or abstraction layers could introduce latency, especially if not optimized. Caching CAPTCHA tokens or using lightweight alternatives (e.g., math-captcha) may reduce overhead.
Does this bundle comply with GDPR/CCPA for privacy-focused CAPTCHA?
The bundle emphasizes privacy by avoiding third-party trackers, which aligns with GDPR/CCPA. However, ensure your custom Laravel integration (e.g., storage, logging) also complies with data protection laws.
What’s the easiest way to test this bundle in a Laravel project?
Start by testing the bundle’s core validation logic in isolation (e.g., mocking Symfony dependencies). Use Laravel’s testing tools (e.g., HTTP tests) to verify CAPTCHA challenges and token validation without full integration.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log