Download the PHP package quadcompanies/google-recaptcha-enterprise without Composer

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

Google reCAPTCHA Enterprise (Laravel) — Package Template

This repository is a minimal Laravel package template that provides:

Installation (local development):

  1. Require this package via composer (path repository or VCS) or include it directly in composer.json of your app.
  2. Publish configuration, views and language files:

    php artisan vendor:publish --provider="Components\GoogleReCaptchaEnterprise\ReCaptchaEnterpriseServiceProvider" --tag="config" php artisan vendor:publish --provider="Components\GoogleReCaptchaEnterprise\ReCaptchaEnterpriseServiceProvider" --tag="views" php artisan vendor:publish --provider="Components\GoogleReCaptchaEnterprise\ReCaptchaEnterpriseServiceProvider" --tag="lang"

Usage:

Ensure you provide the following environment variables RECAPTCHA_ENTERPRISE_PROJECT_ID={name of the Google Project containing the keys} RECAPTCHA_ENTERPRISE_SITE_KEY={your-google-site-key} RECAPTCHA_ENTERPRISE_SECRET={your-google-secret}

  1. To use the validation rule in a FormRequest or validator, import and instantiate it:

    use Components\GoogleReCaptchaEnterprise\Rules\ReCaptchaEnterpriseRule;

    // Example: pass the expected action string (must match your JS action) $request->validate([ 'g-recaptcha-response' => [new ReCaptchaEnterpriseRule('submit_form')], ]);

    // Or pass a config array and an action: $request->validate([ 'g-recaptcha-response' => [new ReCaptchaEnterpriseRule(['project_id' => 'my-project-id'], 'submit_form')], ]);

  2. Or use the validator extension rule name recaptcha_enterprise after publishing the package.

  3. To drop the Blade snippet into a form, include the view. Pass the action string so the JS stub uses the same action name you validate server-side:

    @include('recaptcha-enterprise::recaptcha-enterprise', ['action' => 'submit_form'])

    // If you publish the view and want a custom input id, pass inputId as well: @include('recaptcha-enterprise::recaptcha-enterprise', ['action' => 'submit_form', 'inputId' => 'recaptcha_token'])


All versions of google-recaptcha-enterprise with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.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 quadcompanies/google-recaptcha-enterprise contains the following files

Loading the files please wait ...