Download the PHP package collabora/mautic2-hcaptcha without Composer

On this page you can find all versions of the php package collabora/mautic2-hcaptcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mautic2-hcaptcha

Mautic 2 hCaptcha Plugin

packagist mautic

This plugin brings hCaptcha integration to mautic 2.X.

This project is nearly exclusively based on the mautic-recaptcha plugin developed by Konstantin Scheumann.

Ideas and suggestions are welcome, feel free to create an issue or PR on Github.

Licensed under GNU General Public License v3.0.

Installation via composer (preferred)

Execute composer require collabora/mautic2-hcaptcha in the main directory of the mautic installation.

Installation via .zip

  1. Download the master.zip, extract it into the plugins/ directory and rename the new directory to MauticHcaptchaBundle.
  2. Clear the cache via console command php app/console cache:clear --env=prod (might take a while) OR manually delete the app/cache/prod directory.

Configuration

In Mautic, go to Settings > Plugins and click the Install/Upgrade Plugins button located at the top right of the screen.

You should now see a "hCaptcha" plugin. Ensurre Publishedis on Yes and specify the site key and site secret.

Usage in Mautic Form

Go in Components> Forms, edit a form and click on the button Add a field > hCaptcha.

Specify a label (mandatory) and click on Submit.

Now, if everything has been set up correctly and the keys have been properly specified, you should see the preview of the captcha.

Patching procedure

The differences between this plugin and the one developed by Konstantin are kept minimal. What we just did to support this plugin is as follow:

  1. See commit 5a47951195ee4f141010a54bca40fbd34cfdd393 for the endpoint and form field changes. Change based upon the official hCaptcha migration guide.
  2. Bulk replace to hCaptcha:

  3. Rename files from recaptcha to hCaptcha
  4. Pay attention that in Integration/HcaptchaIntegration.php, the name returned by the getName() method must be lowercased and start with an uppercase (so Hcaptcha), otherwise the configuration dialog box used for the configuration of the extension will be empty.

All versions of mautic2-hcaptcha with dependencies

PHP Build Version
Package Version
Requires mautic/composer-plugin Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package collabora/mautic2-hcaptcha contains the following files

Loading the files please wait ...