2017 © Pedro Peláez
 

symfony-bundle coinhive-bundle

This bundle provides Coinhive services. It does'nt depend of coinhive.com

image

medzoner/coinhive-bundle

This bundle provides Coinhive services. It does'nt depend of coinhive.com

  • Monday, November 6, 2017
  • by Medzoner
  • Repository
  • 1 Watchers
  • 2 Stars
  • 309 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

CoinhiveBundle

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight, (*1)

This bundle provides Coinhive services. It does'nt depend of coinhive.com, (*2)

Installation

Step 1: Use composer and enable Bundle

To install CoinhiveBundle with Composer just type in your terminal:, (*3)

php composer.phar require medzoner/coinhive-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:, (*4)

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Medzoner\Bundle\CoinhiveBundle(),
    // ...
);

Step2: Configure the bundle's

Add the following to your config file:, (*5)

# app/config/config.yml

coinhive:
    config:
        site_key: '%coinhive.site_key%'

Step3a: Use captcha in form

Add the following to your formType file:, (*6)

<?php

use CoinhiveBundle\Validator\IsTrue;

    //....

    /**
     * @param FormBuilderInterface $builder
     * @param array                $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('coinhive-captcha-token', CoinHiveCaptchaType::class, [
                'mapped'      => false,
                'constraints' => [
                    new IsTrue()
                ]
            ])
        ;
    }

    //...

Step3b: Use miner on your site

Add the following to your twig files:, (*7)

{{ coinhive_miner() }}

Demo

https://medzoner.com/contact, (*8)

The Versions

06/11 2017

dev-master

9999999-dev https://github.com/Medzoner/CoinhiveBundle

This bundle provides Coinhive services. It does'nt depend of coinhive.com

  Sources   Download

MIT

The Requires

 

The Development Requires

captcha monero coinhiver

08/10 2017

0.1

0.1.0.0 https://github.com/Medzoner/CoinhiveBundle

This bundle provides Coinhive services. It does'nt depend of coinhive.com

  Sources   Download

MIT

The Requires

 

The Development Requires

captcha monero coinhiver