Skip to content

Elma/friendly-captcha-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elma Friendly Captcha Bundle

CI

This bundle provides easy friendlycaptcha.com form field for Symfony.

This is a fork of the [cors][https://github.com/cors-gmbh/friendly-captcha-bundle] bundle, that does not seems to be maintened, [see this PR for details][cors-gmbh#3]

Installation

Step 1: Use composer and enable Bundle

To install CORSFriendlyCaptchaBundle with Composer just type in your terminal:

php composer.phar require elma/friendly-captcha-bundle

Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your AppKernel.php file, and register the new bundle:

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new CORS\Bundle\FriendlyCaptchaBundle\CORSFriendlyCaptchaBundle(),
    // ...
);

Step2: Configure the bundle's

cors_friendly_captcha:
    sitekey: here_is_your_sitekey
    secret: here_is_your_secret
    use_eu_endpoints: true|false

Optionally, change endpoints

cors_friendly_captcha:
  puzzle: 
    endpoint: https://api.friendlycaptcha.com/api/v1/puzzle
    eu_endpoint: https://eu-api.friendlycaptcha.eu/api/v1/puzzle
  validation: 
    endpoint: https://api.friendlycaptcha.com/api/v1/siteverify
    eu_endpoint: https://eu-api.friendlycaptcha.eu/api/v1/siteverify

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 98.3%
  • Twig 1.7%