Download the PHP package victor-prdh/recaptcha-bundle without Composer

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

VictorPrdhRecaptchaBundle

bundle version

Easy implementation of Google Recaptcha with symfony.

Installation

Before starting the bundle installation, you need to register reCAPTCHA keys here.

Use composer to install this bundle.

With Symfony flex

You can quickly configure this bundle by using symfony/flex:

If everything is good, you must have the bundle registred in the "bundles.php" file of your config folder ("config/bundles.php"):

Just add it if you dont see this line.

You can directly go to Usage section

Without Symfony flex

If you don't want / you can't use the flex recipe you can create a "recaptcha.yaml" file in your config folder ("config/packages/recaptcha.yaml"):

Once you created this config file, you can go in your ".env" file and add this:

It's time for update the bundle, if you don't do it, your keys will not be used by the bundle.

Usage

Integration in Symfony Form

You have now a "ReCaptchaType" class available for all your forms. You can use it in your FormBuilder like a "TextType" or "PasswordType":

Display error on your Twig view

Once you create the form, you render it as usual with Symfony. You can show it in your twig file like that:

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

If you speak a language without translation, you're help is welcome.

License

MIT


All versions of recaptcha-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
google/recaptcha Version ^1.2
symfony/framework-bundle Version ^5.4|^6.0|^7.0
symfony/form Version ^5.4|^6.0|^7.0
symfony/translation Version ^5.4|^6.0|^7.0
symfony/twig-pack Version ^1.0
symfony/validator Version ^5.4|^6.0|^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 victor-prdh/recaptcha-bundle contains the following files

Loading the files please wait ....