Download the PHP package dmstr/yii2-contact-module without Composer

On this page you can find all versions of the php package dmstr/yii2-contact-module. 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 yii2-contact-module

Configuring template

Navigate to /contact/crud/contact-template to create a new form template.

property required description
Name yes a unique name, e.g. 'reservation'
From Email yes valid email used as 'From:' header
To Email yes one or more valid email addresses (comma separated) used as 'To:' header
Reply To Email no optional, valid email. Use this if you want to set 'Reply-To:' header to a fixed address for ALL mails. If set 'Reply to Schema Property' will be irgnored!
Reply to Schema Property no can be used to define which property from schema should be used (if valid mail!) as 'Reply-To:' header. If 'Reply To Email' is set to a fixed address, this will be ignored
Return Path no if set and is a valid email, this will be used as 'Return-Path:' header where bounce Mails will be send to. Handle with care
Captcha no this tells the contact module that a captcha will be used and that it has to validated against it (sets model scenario to captcha). Captcha widget is required in twig!
Form Schema yes json-schema used to build a form with dmstr/jsoneditor/JsonEditorWidget (For more information about schema see examples on: https://github.com/json-editor/json-editor)

Upgrade hints:

Twig templates (Views)

Each form needs 2 Twig templates. Navigate to /prototype/twig/index to create them:

While FORM_NAME must be replaced with your template name

Form Twig layout

Form Twig layout with captcha (requires captcha activate in the contact-template)

"Thank you page" Twig layout

Contact form widgets twig example

Settings schema

Export

To enable the export feature add kartik\grid\Module to your project modules


All versions of yii2-contact-module with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ^2.0.11
justinrainbow/json-schema Version ^5.2.0
dmstr/yii2-prototype-module Version >=0.5.4
kartik-v/yii2-export Version ^1.2
dmstr/yii2-json-editor Version ^1.4.2
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 dmstr/yii2-contact-module contains the following files

Loading the files please wait ....