Download the PHP package vizuaalog/laravel-recaptcha without Composer

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

If you have publically available forms, it may be a good idea to have some form of captcha. This will help reduce the amount of spam you receive from robots submitting that form.

reCaptcha is Googles take on captchas. Your user doesn't have to type out any hard to see text, instead, they may only need to simply click the checkbox. If the API is unsure as to whether that was a 'humanly' click then your user will be asked to do something involving pictures.

I regularly use reCaptcha in both my private and professional work. I also use Laravel. And it can be annoying having to type out the reCaptcha checking code. So Laravel reCaptcha was born.

Installation

To install Laravel reCaptcha simple add it to your :

Alternatively add it via the composer CLI:

Then add the facade and provider to your file within your Laravel app:

Configuration

Before you can use Laravel reCaptcha you will first need to configure a sitekey and secret via [https://www.google.com/recaptcha/admin](the reCaptcha dashboard).

Once setup update your file to include the following:

Usage

Within your form, you will need to render the reCaptcha box. You can do this by using the following method where you would like the box to show:

At the top of your controller you need to add a use statement to load in the Recaptcha facade, this is automatically registered via the RecaptchaServiceController.

Within your controller where your form posts you can use the following method to check if the captcha was successful. This returns a boolean value:

If the check fails you can access the errors received from the API using the following method, this returns an array of the errors:

Below is an example controller showing a potential 'real world' example.

Issues / contribution

If you notice any bugs, issues or would like the contribute to this project then please submit an issue or pull request detailing the bug or contribution.


All versions of laravel-recaptcha with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
illuminate/support Version ^5.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 vizuaalog/laravel-recaptcha contains the following files

Loading the files please wait ....