Download the PHP package albertcht/invisible-recaptcha without Composer

On this page you can find all versions of the php package albertcht/invisible-recaptcha. 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 invisible-recaptcha

Invisible reCAPTCHA

php-badge packagist-badge Total Downloads travis-badge

invisible_recaptcha_demo

Why Invisible reCAPTCHA?

Invisible reCAPTCHA is an improved version of reCAPTCHA v2(no captcha). In reCAPTCHA v2, users need to click the button: "I'm not a robot" to prove they are human. In invisible reCAPTCHA, there will be not embed a captcha box for users to click. It's totally invisible! Only the badge will show on the buttom of the page to hint users that your website is using this technology. (The badge could be hidden, but not suggested.)

Notice

Installation

Laravel 5

Setup

Add ServiceProvider to the providers array in app/config/app.php.

It also supports package discovery for Laravel 5.5.

Configuration

Before you set your config, remember to choose invisible reCAPTCHA while applying for keys. invisible_recaptcha_setting

Add INVISIBLE_RECAPTCHA_SITEKEY, INVISIBLE_RECAPTCHA_SECRETKEY to .env file.

There are three different captcha styles you can set: bottomright, bottomleft, inline

If you set INVISIBLE_RECAPTCHA_BADGEHIDE to true, you can hide the badge logo.

You can see the binding status of those catcha elements on browser console by setting INVISIBLE_RECAPTCHA_DEBUG as true.

Usage

Before you render the captcha, please keep those notices in mind:

Display reCAPTCHA in Your View

With custom language support:

Usage with Javascript frameworks like VueJS:

The render() process includes three distinct sections that can be rendered separately incase you're using the package with a framework like VueJS which throws console errors when <script> tags are included in templates.

You can render the polyfill (do this somewhere like the head of your HTML:)

You can render the HTML using this following, this needs to be INSIDE your <form> tag:

And you can render the neccessary <script> tags including the optional language support by using:

Validation

Add 'g-recaptcha-response' => 'required|captcha' to rules array.

CodeIgniter 3.x

set in application/config/config.php :

add lines in application/config/config.php :

In controller, use:

In view, in your form:

Then back in your controller you can verify it:

Without Laravel or CodeIgniter

Checkout example below:

Take Control of Submit Function

Use this function only when you need to take all control after clicking submit button. Recaptcha validation will not be triggered if you return false in this function.

Customize Submit Function

If you want to customize your submit function, for example: doing something after click the submit button or changing your submit to ajax call, etc.

The only thing you need to do is to implement _submitEvent in javascript

Here's an example to use an ajax submit (using jquery selector)

Example Repository

Repo: https://github.com/albertcht/invisible-recaptcha-example

This repo demonstrates how to use this package with ajax way.

Showcases

Credits

Support on Beerpay

Hey dude! Help me out for a couple of :beers:!

Beerpay Beerpay


All versions of invisible-recaptcha with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6.4 || ^7.0 || ^8.0
illuminate/support Version ^5.0|^6.0|^7.0|^8.0|^9.0
illuminate/view Version ^5.0|^6.0|^7.0|^8.0|^9.0
guzzlehttp/guzzle Version ^6.2|^7.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 albertcht/invisible-recaptcha contains the following files

Loading the files please wait ....