Download the PHP package rafalmasiarek/dashboard-kit-addon-recaptcha without Composer

On this page you can find all versions of the php package rafalmasiarek/dashboard-kit-addon-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 dashboard-kit-addon-recaptcha

dashboard-kit-addon-recaptcha

Google reCAPTCHA v2 addon for rafalmasiarek/dashboard-kit.

Injects the captcha widget into login and register forms via the FormSlotRegistry extension point. Server-side verification uses the before_login / before_register hook chain.

Requirements

Installation

Usage

Via Dashboard::create() config (recommended)

Pass config under the recaptcha key in Dashboard::create(). No arguments needed at the call site:

Inline config

Pass config directly to register(). Takes precedence over app.config['recaptcha'] when both are set.

Configuration

Key Type Description
site_key string reCAPTCHA v2 site key (required)
secret_key string reCAPTCHA v2 secret key (required)
login array|false Login form config. false disables captcha on login.
login.mode 'always'|'x_failed' always — show on every login attempt. x_failed — show only after N consecutive failures.
login.threshold int Number of failures before captcha appears (x_failed mode). Default: 3.
register bool Whether to show captcha on the register form. Default: false.

Modes

always

The captcha widget is rendered on every visit to /login. The token is verified on every POST.

x_failed

The captcha is hidden until the user has failed threshold consecutive login attempts within the same browser session. After the threshold is reached, the captcha appears and its token is verified on every subsequent attempt. A successful login resets the counter.

Frontend submit blocker

When the captcha widget is rendered, the form's submit button is disabled immediately on page load — before the reCAPTCHA API script even loads. The button is re-enabled only after the challenge is solved and disabled again if the token expires.

This prevents the backend from being hit with unanswered CAPTCHA requests. Server-side verification via before_login / before_register remains the authoritative check — the frontend blocker is a UX layer only.

In x_failed mode the blocker appears together with the widget, so the button is not affected until the threshold is reached.

Testing

Google provides permanent test keys that always pass verification:

Key Value
Site key 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
Secret key 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

The captcha widget renders with a "This is a test" watermark when using test keys.

License

Business Source License 1.1 — see LICENSE. For alternative licensing, contact us.


All versions of dashboard-kit-addon-recaptcha with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
rafalmasiarek/dashboard-kit Version ^1.4 || ^2.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 rafalmasiarek/dashboard-kit-addon-recaptcha contains the following files

Loading the files please wait ...