sfynx-project / tool-captcha-bundle
This Bundle provides a secure captcha to add in form.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Type:symfony-bundle
pkg:composer/sfynx-project/tool-captcha-bundle
Requires
- symfony/framework-bundle: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: *
- symfony/phpunit-bridge: ~2.7|~3.0
This package is not auto-updated.
Last update: 2025-10-12 00:36:20 UTC
README
Parameters configuration
parameter.yml :
parameters:
sfynx_captcha_form_options:
root_pictures: '@@SfynxCaptchaBundle/Resources/public'
captcha_pictures:
- ['Sfynx', '/img/captcha/logo-sfynx.png']
- ['Pi-groupe', '/img/captcha/pigroupe.jpg']
routing.yml :
SfynxCaptchaBundle:
resource: "@SfynxCaptchaBundle/Resources/config/routing.yml"
prefix: /
Twig
{% form_theme form with ['SfynxCaptchaBundle:Form:captcha.html.twig'] %}
Css/js
{% stylesheets filter='css_url_rewrite, ?yui_css'
'@SfynxCaptchaBundle/Resources/public/css/sfynx-captcha.css' %}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
{% javascripts filter='?yui_js'
'@SfynxCaptchaBundle/Resources/public/js/sfynx-captcha.js'
%}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}