Download the PHP package huluti/altcha-bundle without Composer
On this page you can find all versions of the php package huluti/altcha-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download huluti/altcha-bundle
More information about huluti/altcha-bundle
Files in huluti/altcha-bundle
Package altcha-bundle
Short Description A simple package to help integrate Altcha on Symfony.
License MIT
Informations about the package altcha-bundle
A simple package to help integrate ALTCHA on Symfony Form.
This packages integrates ALTCHA, a privacy-friendly Captcha alternative, with Symfony forms.
Simply add an AltchaType
field to your form and this package will automatically check the challenge issue.
ALTCHA uses a proof-of-work mechanism to protect your website, APIs, and online services from spam and unwanted content.
Unlike other solutions, ALTCHA is free, open-source and self-hosted, does not use cookies nor fingerprinting, does not track users, and is fully compliant with GDPR.
Say goodbye to tedious puzzle-solving and improve your website's UX by integrating a fully automated proof-of-work mechanism.
Support
- Symfony 6.4+
- PHP 8.1+
Installation
You can install the package via Composer:
Add bundle into config/bundles.php file:
Add a config file:
YML
config/packages/huluti_altcha.yaml
PHP
config/packages/huluti_altcha.php
:
Import bundle routes:
YML
PHP
⚠️ Important – Security Configuration
If your application restricts access globally using a rule like:
Then the Altcha challenge endpoint (/huluti_altcha/challenge
) will also be protected by default.
To allow it to be publicly accessible (as intended for the challenge mechanism to work), you must explicitly add the following rule before the global one:
This ensures that the challenge endpoint is reachable by unauthenticated users, while keeping the rest of your app secure.
Use with your Symfony Form
Create a form type and insert an AltchaType to add the captcha:
Use inside UX Live component or with Stimulus
Asset mapper is required to use this package in the UX Live component or Stimulus.
There is only one option need to be changed to work with Stimulus or UX Live component.
License
The MIT License (MIT). Please see License File for more information.
All versions of altcha-bundle with dependencies
symfony/form Version ^6.4|^7.0
symfony/framework-bundle Version ^6.4|^7.0
symfony/http-client Version ^6.4|^7.0
symfony/yaml Version ^6.4|^7.0
symfony/validator Version ^6.4|^7.0
symfony/twig-bundle Version ^6.4|^7.0
symfony/translation Version ^6.4|^7.0
altcha-org/altcha Version ^1.1.2