Download the PHP package mamuz/mamuz-contact without Composer
On this page you can find all versions of the php package mamuz/mamuz-contact. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mamuz/mamuz-contact
More information about mamuz/mamuz-contact
Files in mamuz/mamuz-contact
Package mamuz-contact
Short Description Provides simple contact form rendered by twitter-bootstrap view helper for ZF2 with Doctrine
License MIT
Homepage https://github.com/mamuz/MamuzContact
Informations about the package mamuz-contact
MamuzContact
Features
- This module provides a contact form based on ZF2 and Doctrine2.
- Submitted contact forms will persist in repository.
- Captcha support is provided to force submitting by humans.
- Views are twitter-Bootstrap compatible.
Installation
The recommended way to install
mamuz/mamuz-contact
is through
composer by adding dependency to your composer.json
:
After that run composer update
and enable this module for ZF2 by adding
MamuzContact
to modules
in ./config/application.config.php
:
This module is based on DoctrineORMModule
and be sure that you have already configured database connection.
Create database tables with command line tool provided by
DoctrineORMModule
:
Configuration
This module is usable out of the box, but you can overwrite default configuration
by adding a config file in ./config/autoload
directory.
For default configuration see
module.config.php
Captcha Support
Create a new config file and place it to ./config/autoload
directory and
insert configuration array for Zend Captcha form element factory.
Array must be indexed by key captcha
, for e.g.:
Requirement for Google ReCaptcha WebService
Register your domain to Google ReCaptcha WebService
to
create a private key and a public key. Be sure that private key will not commit to VCS.
Workflow
After filtering and validation of user input a new contact entity
will persist in repository MamuzContact
.
Events
For the sake of simplicity Event
is used for
FQN MamuzContact\EventManager\Event
.
The following events are triggered by Event::IDENTIFIER
mamuz-contact:
Name | Constant | Description |
---|---|---|
persist.pre | Event::PRE_PERSISTENCE |
Before contact entity persistence |
persist.post | Event::POST_PERSISTENCE |
After contact entity persistence |
All versions of mamuz-contact with dependencies
zendframework/zend-mvc Version ~2.3
zendframework/zend-code Version ~2.3
zendframework/zend-session Version ~2.3
zendframework/zend-servicemanager Version ~2.3
zendframework/zend-eventmanager Version ~2.3
zendframework/zend-modulemanager Version ~2.3
zendframework/zend-view Version ~2.3
zendframework/zend-http Version ~2.3
zendframework/zend-form Version ~2.3
zendframework/zend-stdlib Version ~2.3
zendframework/zend-i18n Version ~2.3
zendframework/zend-captcha Version ~2.3
zendframework/zend-filter Version ~2.3
zendframework/zend-validator Version ~2.3
doctrine/doctrine-orm-module Version ~0.8
neilime/zf2-twb-bundle Version ~2.4
zendframework/zendservice-recaptcha Version ~2.0.1