Download the PHP package mirko-pagliai/cakephp-recaptcha-mailhide without Composer

On this page you can find all versions of the php package mirko-pagliai/cakephp-recaptcha-mailhide. 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 cakephp-recaptcha-mailhide

reCAPTCHA Mailhide

CI codecov Codacy Badge CodeFactor

reCAPTCHA Mailhide is a CakePHP plugin that allows you to hide email addresses using reCAPTCHA. It works by using the crabstudio/Recaptcha plugin, which must first be loaded and configured correctly.

Did you like this plugin? Its development requires a lot of time for me. Please consider the possibility of making a donation: even a coffee is enough! Thank you.

Installation

You can install the plugin via composer:

Then you have to load the plugin. For more information on how to load the plugin, please refer to the Cookbook.

Simply, you can execute the shell command to enable the plugin:

This would update your application's bootstrap method.

Then you also need to set up a key to encrypt/decrypt email addresses:

Installation on older CakePHP and PHP versions

Recent packages and the master branch require at least CakePHP 4.0 and PHP 7.2. Instead, the cakephp3 branch requires at least PHP 5.6.

In this case, you can install the package as well:

Note that the cakephp3 branch will no longer be updated as of May 7, 2021, except for security patches, and it matches the 1.4.7 version.

Configuration

First, you have to load the Recaptcha component provided by the crabstudio/Recaptcha plugin, as described here. The component must be loaded inside the initialize() method of your AppController class.

For more information on how to load the component, please refer to the Cookbook.

Then, you have to load the Mailhide helper:

For more information on how to load the helper, please refer to the Cookbook.

Usage

You can now use the link() method provided by the Mailhide helper in your template files. Example:

This will create a link. By clicking on the link, a popup will open and it will contain the reCAPTCHA control. If the check was filled in correctly, the clear email will be shown.

You can also use the email address as the title of the link. Example:

In this case, the email will be obfuscated (myn***@mymail.com) to be shown as the title of the link.

The third parameter of the method can be used for link options. Example:

Versioning

For transparency and insight into our release cycle and to maintain backward compatibility, reCAPTCHA Mailhide will be maintained under the Semantic Versioning guidelines.


All versions of cakephp-recaptcha-mailhide with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
cakephp/cakephp Version ~4.3
crabstudio/recaptcha Version ~3.0.1
mirko-pagliai/php-tools Version ~1.7.1
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 mirko-pagliai/cakephp-recaptcha-mailhide contains the following files

Loading the files please wait ....