2017 © Pedro Peláez
 

library zf3-coinhive-captcha

CoinHive Captcha module for Zend Framework 2 & 3 (ZF2 / ZF3)

image

notafacil/zf3-coinhive-captcha

CoinHive Captcha module for Zend Framework 2 & 3 (ZF2 / ZF3)

  • Thursday, April 5, 2018
  • by sergiohermes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

CoinHiveCaptcha - A ZF2/3 Module for CoinHive.com Captcha

Simple way to use the coinhive.com captcha, (*1)

Installation

with composer

Just add the following line to your requirements:, (*2)

composer require notafacil/zf3-coinhive-captcha

and run, (*3)

php composer.phar update

Since there are problems with the SSL-Cert if you use Adapter\Socket, please install php-curl!, (*4)

Then activate the module in your application.config.php :, (*5)

```php
return array(
    'modules' => array(
        // ...
        'CoinHiveCaptcha',
    ),
    // ...
);
```

Get your private-key

To use this service, you have to register at CoinHive using your CoinHive Account., (*6)

Usage

with Zend\From

Just add the following lines to your form creation:, (*7)

$element = new \Zend\Captcha\Captcha('coinhive-captcha-token');
$element->setCaptcha(new CoinHiveCaptcha\CoinHiveCaptcha(array('secret_key' => 'YOUR_SECRET', 'public_key' => 'YOUR_PUBLIC_KEY', 'hashes' => 512)));
$form->add($element);

Remember to add this element to your validationChain as well., (*8)

It acts the same way as any other built-in captcha solution., (*9)

with ServiceManager

If you like to implement the view on your own, just use the Service\CoinHiveCaptchaService. It handles the whole communication between your code and the CoinHive API., (*10)

$recaptcha = $serviceLocator->get('CoinHiveCaptcha\Service\CoinHiveCaptchaService');

The Versions

05/04 2018

dev-master

9999999-dev https://github.com/notafacil/zf3-coinhive-captcha

CoinHive Captcha module for Zend Framework 2 & 3 (ZF2 / ZF3)

  Sources   Download

MIT

The Requires

 

zf2 captcha zf3 coinhive

05/04 2018

2.0.1

2.0.1.0 https://github.com/notafacil/zf3-coinhive-captcha

CoinHive Captcha module for Zend Framework 2 & 3 (ZF2 / ZF3)

  Sources   Download

MIT

The Requires

 

zf2 captcha zf3 coinhive

03/11 2017

1.0.2

1.0.2.0 https://github.com/n0v3xx/zf3-coinhive-captcha

CoinHive Captcha module for Zend Framework 2 & 3 (ZF2 / ZF3)

  Sources   Download

GPL-3.0

The Requires

 

zf2 captcha zf3 coinhive

07/10 2017

1.0.1

1.0.1.0 https://github.com/n0v3xx/zf3-coinhive-captcha

CoinHive Captcha module for Zend Framework 2 & 3 (ZF2 / ZF3)

  Sources   Download

GPL-3.0

The Requires

 

zf2 captcha zf3 coinhive

06/10 2017

1.0.0

1.0.0.0 https://github.com/n0v3xx/zf3-coinhive-captcha

CoinHive Captcha module for Zend Framework 2 & 3 (ZF2 / ZF3)

  Sources   Download

GPL-3.0

The Requires

 

zf2 captcha zf3 coinhive