PHPackages                             carlos-mg89/symfony-captcha-bundle - 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. carlos-mg89/symfony-captcha-bundle

ActiveSymfony-bundle

carlos-mg89/symfony-captcha-bundle
==================================

Symfony Captcha Bundle -- BotDetect PHP CAPTCHA generator integration for the Symfony framework.

4.2.21(5y ago)033.5k—9.4%2[1 PRs](https://github.com/carlos-mg89/symfony-captcha-bundle/pulls)PHPPHP &gt;=5.3.9

Since Dec 8Pushed 4y agoCompare

[ Source](https://github.com/carlos-mg89/symfony-captcha-bundle)[ Packagist](https://packagist.org/packages/carlos-mg89/symfony-captcha-bundle)[ Docs](https://captcha.com/doc/php/symfony-captcha-bundle-quickstart.html)[ RSS](/packages/carlos-mg89-symfony-captcha-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (33)Used By (0)

ATTENTION!!! This library is not the official one, but since the official one does not seem to have support anymore I've decided to fully update it so it's working again for newer Symfony versions. I haven't put any efforts on making it compatible with Symfony 4 or older versions, but contributions are welcome.
========================================================================================================================================================================================================================================================================================================================

[](#attention-this-library-is-not-the-official-one-but-since-the-official-one-does-not-seem-to-have-support-anymore-ive-decided-to-fully-update-it-so-its-working-again-for-newer-symfony-versions-i-havent-put-any-efforts-on-making-it-compatible-with-symfony-4-or-older-versions-but-contributions-are-welcome)

BotDetect PHP Captcha generator integration for the Symfony 5 framework (possibly on Symfony 4.4 too)
=====================================================================================================

[](#botdetect-php-captcha-generator-integration-for-the-symfony-5-framework-possibly-on-symfony-44-too)

[![Total Downloads](https://camo.githubusercontent.com/1e7a3b9f1201d1bb616a9c3444b73d7eb939d4cbd83a5cdbb52bc5c945efc227/68747470733a2f2f706f7365722e707567782e6f72672f6361726c6f732d6d6738392f73796d666f6e792d636170746368612d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/carlos-mg89/symfony-captcha-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/b3bcede63f4ea4d4a13ec5ebe49fbdcb3edab7d3d7c651fdf9b74e751e16d2f0/68747470733a2f2f706f7365722e707567782e6f72672f6361726c6f732d6d6738392f73796d666f6e792d636170746368612d62756e646c652f762f737461626c65)](https://packagist.org/packages/carlos-mg89/symfony-captcha-bundle)

[![BotDetect PHP CAPTCHA Library](https://camo.githubusercontent.com/80fae982a26c5c96c48dc80f3a26711f161fc8a1a596f24add02b90af61e0ce3/68747470733a2f2f636170746368612e636f6d2f696d616765732f68656c702f73637265656e73686f74732f636170746368612d6578616d706c65732e706e67)](https://camo.githubusercontent.com/80fae982a26c5c96c48dc80f3a26711f161fc8a1a596f24add02b90af61e0ce3/68747470733a2f2f636170746368612e636f6d2f696d616765732f68656c702f73637265656e73686f74732f636170746368612d6578616d706c65732e706e67)

BotDetect Symfony CAPTCHA integration on captcha.com
----------------------------------------------------

[](#botdetect-symfony-captcha-integration-on-captchacom)

- [Symfony Captcha Integration Quickstart](https://captcha.com/doc/php/symfony-captcha-bundle-quickstart.html)
- [Symfony Application](https://captcha.com/doc/php/howto/symfony-captcha-bundle.html)
- [Symfony Captcha Api Basics Example](https://captcha.com/doc/php/examples/symfony-basic-captcha-bundle-example.html)
- [Symfony Captcha Form Model Validation Example](https://captcha.com/doc/php/examples/symfony-form-validation-captcha-bundle-example.html)
- [Symfony Captcha FOSUserBundle Example](https://captcha.com/doc/php/examples/symfony-fosuserbundle-captcha-example.html)

Other BotDetect PHP Captcha integrations
----------------------------------------

[](#other-botdetect-php-captcha-integrations)

- [Plain PHP Captcha Integration](https://captcha.com/doc/php/php-captcha-quickstart.html)
- [WordPress Captcha Plugin](https://captcha.com/doc/php/wordpress-captcha.html)
- [CakePHP Captcha Integration](https://captcha.com/doc/php/cakephp-captcha-quickstart.html)
- [CodeIgniter Captcha Integration](https://captcha.com/doc/php/codeigniter-captcha-quickstart.html)
- [Laravel Captcha Integration](https://captcha.com/doc/php/laravel-captcha-quickstart.html)

Questions?
----------

[](#questions)

If you encounter bugs, implementation issues, a usage scenario you would like to discuss, or you have any questions, please contact [BotDetect CAPTCHA Support](http://captcha.com/support).

How to install with Composer
============================

[](#how-to-install-with-composer)

Simply run `composer require carlos-mg89/symfony-captcha-bundle`

Usage example in a Symfony 5.x project
======================================

[](#usage-example-in-a-symfony-5x-project)

1. Install dependency with Composer as explained above
2. Add the following in your `config/routes.yaml`: ```
    captcha_routing:
          resource: "@CaptchaBundle/Resources/config/routing.yml"

    ```
3. Create this file `config/packages/captcha.php` with the following content (or similar): ```
