Download the PHP package digitaladapt/magento-vigilant-form-kit without Composer
On this page you can find all versions of the php package digitaladapt/magento-vigilant-form-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitaladapt/magento-vigilant-form-kit
More information about digitaladapt/magento-vigilant-form-kit
Files in digitaladapt/magento-vigilant-form-kit
Package magento-vigilant-form-kit
Short Description Magento Module for VigilantForm.
License MIT
Homepage https://github.com/digitaladapt/magento-vigilant-form-kit
Informations about the package magento-vigilant-form-kit
magento-vigilant-form-kit
Magento Module for VigilantForm.
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?
First you add the library:
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.
Then use dependency injection to get the \VigilantForm\MagentoKit\VigilantFormMagentoKit
class into whatever block or controller which has the form you want to validate.
Within the form template you call generateHoneypot() within the html form:
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):
When handling form submissions, you also dependency inject the VigilantFormMagentoKit
class, which has the submitForm()
function. If the submission fails to be stored,
it will throw an UnexpectedValueException.
Finally, redeploy your Magento website to detect the new module and recompile the dependency injection.