PHPackages                             digitaladapt/magento-vigilant-form-kit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. digitaladapt/magento-vigilant-form-kit

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

digitaladapt/magento-vigilant-form-kit
======================================

Magento Module for VigilantForm.

1.0.3(5y ago)2599MITPHPPHP &gt;=7.1.0

Since Jul 15Pushed 4y agoCompare

[ Source](https://github.com/digitaladapt/magento-vigilant-form-kit)[ Packagist](https://packagist.org/packages/digitaladapt/magento-vigilant-form-kit)[ Docs](https://github.com/digitaladapt/magento-vigilant-form-kit)[ RSS](/packages/digitaladapt-magento-vigilant-form-kit/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (1)Versions (16)Used By (0)

magento-vigilant-form-kit
=========================

[](#magento-vigilant-form-kit)

Magento Module for VigilantForm.

So what is this?
----------------

[](#so-what-is-this)

A Magento Module to make it easy to push form submissions into an instance of VigilantForm.

So how is it used?
------------------

[](#so-how-is-it-used)

First you add the library:

```
composer require digitaladapt/magento-vigilant-form-kit
```

Then setup a config file `vigilantform.json` in the root of your Magento installation: website and form\_title will default to hostname and "submit" respectively.

```
{
  "url":          "",
  "clientId":     "",
  "secret":       "",
  "prefix":       null,
  "honeypot":     null,
  "sequence":     null,
  "script_src":   null,
  "script_class": null,
  "website":      null,
  "form_title":   null
}
```

Then use dependency injection to get the `\VigilantForm\MagentoKit\VigilantFormMagentoKit` class into whatever block or controller which has the form you want to validate.

```
// SomeBlock.php

```

If a page has multiple forms within a single page, you may call generateHoneypot('form') within the html form, so long as you also call generateHoneypot('code'), after the last form, (this is not required, but can provide a performance boost to page loads):

```
// some_block.phtml
