Download the PHP package crazycat/module-magento2-forms without Composer

On this page you can find all versions of the php package crazycat/module-magento2-forms. 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 module-magento2-forms

Customized forms management for Magento 2

Help to create and handle customized forms, show as widgets.

Administrator will receive an email after customer submitting a form, and is able to check submit records through CONTENT / Forms / Post Records in admin panel.

Installation

  1. Execute this command to download the module through composer:
    composer require crazycat/module-magento2-forms

  2. Execute these commands to enable the modules:
    php bin/magento module:enable CrazyCat_Base
    php bin/magento module:enable CrazyCat_Forms

  3. Execute these commands to update database, recompile and flush cache:
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento cache:flush

How to use

Create a Form

  1. Create a template file under CrazyCat_Forms folder of theme directory, for example: [root]/app/design/frontend/[Vendor]/[theme]/CrazyCat_Forms/templates/forms/inquiry.phtml

  2. Create a form through admin panel: CONTENT / Forms / Forms > Add New Form

    • Form Name - Form name to show in form list, post record list and widget management
    • Identifier - Unique key of the form
    • Email Sender - To select a sender from the list of which options are same with store config email identities
    • Recipients - Recipients emails, separated by comma
    • Renderer - To render elements through customize a template or configure elements
    • Template - Template path like CrazyCat_Forms::forms/inquiry.phtml
    • Elements - Configure elements
  3. Create a Form widget through widget management or insert one through WYSIWYG editor to show in storefront

Form Template

Here is an example of email template:

Several key points need to be noted:

Form Elements

Using Configure Elements as renderer means that elements in the block will be rendered with UI components.

The element management is a drag and drop box, it provides some common types of frontend model and validation to choose.

Configuration column of the elements is to add JavaScript settings for related UI component.

CAPTCHA

Administrator is able to enable the CAPTCHA through switching this setting in admin panel:
STORES / Settings / Configuration > SECURITY / Google reCAPTCHA Storefront > Storefront / Enable for Customized Forms

And fill in Google API Website Key and Google API Secret Key of the related service.


All versions of module-magento2-forms with dependencies

PHP Build Version
Package Version
Requires php Version ~7.4.0
magento/framework Version 103.0.*
crazycat/module-magento2-base Version ~1.0.1
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 crazycat/module-magento2-forms contains the following files

Loading the files please wait ....