Download the PHP package bkstar123/laravel-recaptcha without Composer

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

laravel-recaptcha

This package adds reCaptcha_v2 Checkbox and reCaptcha_v3 validation. Both versions of reCaptcha can be used together

1.Requirements

It is recommended to install this package with PHP version 7.1.3+ and Laravel Framework version 5.5+

2.Installation

composer require bkstar123/laravel-recaptcha 

For reCaptcha_v2 Checkbox, add the following settings in the .env file:

For reCaptcha_v3, add the following settings in the .env file:

 (optional, by default set to 0.5)  

3. Usage for reCaptcha v2 checkbox

3.1 In Blade view

You can add Google reCaptcha v2 validation to your site by simply calling

Note: Recaptcha alias is automatically registered, so you do not need to add it in the config/app.php

The following input will be automatically added to your view and being validated in the validation logic

You can also display the validation result to the view as follows (use CSS styling to highlight the validation error):

3.2 In validation logic

You can use a new custom validation rule recaptcha against the attribute g-recaptcha-response, for example:

4. Usage for reCaptcha v3

4.1 In Blade view

Firstly, you need to call addClient3Html() method on Recaptcha facade, for example:

This call will create a hidden input as follows:

You can display the validation error by adding the following snippet:

Secondly, you need to call addClient3Js() method on Recaptcha facade, for example:

This call will create a Javascript block as follows:

4.2 In Validation logic

You can use a new custom validation rule recaptcha_v3 against the attribute recaptcha3, for example:

Note:


All versions of laravel-recaptcha with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
guzzlehttp/guzzle Version ^6.3
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 bkstar123/laravel-recaptcha contains the following files

Loading the files please wait ....