PHPackages                             mamuz/mamuz-contact - 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. [Database &amp; ORM](/categories/database)
4. /
5. mamuz/mamuz-contact

ActiveLibrary[Database &amp; ORM](/categories/database)

mamuz/mamuz-contact
===================

Provides simple contact form rendered by twitter-bootstrap view helper for ZF2 with Doctrine

1.0.1(10y ago)38452MITPHPPHP &gt;=5.4

Since Jun 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mamuz/MamuzContact)[ Packagist](https://packagist.org/packages/mamuz/mamuz-contact)[ Docs](https://github.com/mamuz/MamuzContact)[ RSS](/packages/mamuz-mamuz-contact/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (21)Versions (10)Used By (0)

MamuzContact
============

[](#mamuzcontact)

[![Build Status](https://camo.githubusercontent.com/dae6a9f4ddc45d1bcd80d89d07f75bfc6538d4a065f7911075d4d067aeaee8cf/68747470733a2f2f7472617669732d63692e6f72672f6d616d757a2f4d616d757a436f6e746163742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mamuz/MamuzContact)[![Coverage Status](https://camo.githubusercontent.com/1b6aa9b764f7ca1573c800cb7920a68fd988e076984952ba952b62b6ee8972a6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d616d757a2f4d616d757a436f6e746163742f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/mamuz/MamuzContact?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1648c22ee010a74c5683e01aadb1144c8804c4a69a92c97201298123222cb11a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616d757a2f4d616d757a436f6e746163742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mamuz/MamuzContact/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/d3740ae658300830a297f8d1bc24136f7cf8b5177879b0b952d5a701a3c87cb0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35303461333239312d616231312d346231352d393332322d3632333131626336313061392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/504a3291-ab11-4b15-9322-62311bc610a9)[![HHVM Status](https://camo.githubusercontent.com/ae03297704f7fcf5008e596c7986e9de9aece68e5fc22bf96c27bc9c5b4fe7bb/687474703a2f2f6868766d2e683463632e64652f62616467652f6d616d757a2f6d616d757a2d636f6e746163742e706e67)](http://hhvm.h4cc.de/package/mamuz/mamuz-contact)[![Dependency Status](https://camo.githubusercontent.com/9f0d296278f76589458be4a76c768b6463f8c066595a63999121628834b606bd/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533386637383737343663343733393538363030303032302f62616467652e737667)](https://www.versioneye.com/user/projects/538f787746c4739586000020)

[![Latest Stable Version](https://camo.githubusercontent.com/f243ec8fec3e498693c627a4acf364d5314f63a7a87c369370cfde3aeffa5860/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d636f6e746163742f762f737461626c652e737667)](https://packagist.org/packages/mamuz/mamuz-contact)[![Latest Unstable Version](https://camo.githubusercontent.com/8523c1caac85ff4a9cea2fa0e2e80c7594de07f35127a0d8018ac71e5ce09445/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d636f6e746163742f762f756e737461626c652e737667)](https://packagist.org/packages/mamuz/mamuz-contact)[![Total Downloads](https://camo.githubusercontent.com/9ece57233b16abca03cd6d8269922fb3416ee5830c93681c0f97ad20b7c96f0a/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d636f6e746163742f646f776e6c6f6164732e737667)](https://packagist.org/packages/mamuz/mamuz-contact)[![License](https://camo.githubusercontent.com/91b04cf4dfbdb418d69fc65b785d53e50a3e111325f1c53e57831d4f46b12f49/68747470733a2f2f706f7365722e707567782e6f72672f6d616d757a2f6d616d757a2d636f6e746163742f6c6963656e73652e737667)](https://packagist.org/packages/mamuz/mamuz-contact)

Features
--------

[](#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
------------

[](#installation)

The recommended way to install [`mamuz/mamuz-contact`](https://packagist.org/packages/mamuz/mamuz-contact) is through [composer](http://getcomposer.org/) by adding dependency to your `composer.json`:

```
{
    "require": {
        "mamuz/mamuz-contact": "*"
    }
}
```

After that run `composer update` and enable this module for ZF2 by adding `MamuzContact` to `modules` in `./config/application.config.php`:

```
// ...
    'modules' => array(
        'MamuzContact',
    ),
```

This module is based on [`DoctrineORMModule`](https://github.com/doctrine/DoctrineORMModule)and be sure that you have already [configured database connection](https://github.com/doctrine/DoctrineORMModule).

Create database tables with command line tool provided by [`DoctrineORMModule`](https://github.com/doctrine/DoctrineORMModule):

```
./vendor/bin/doctrine-module orm:schema-tool:update
```

Configuration
-------------

[](#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`](https://github.com/mamuz/MamuzContact/blob/master/config/module.config.php)

Captcha Support
---------------

[](#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.:

```
return array(
    'captcha' => array(
        'type'       => 'Zend\Form\Element\Captcha',
        'name'       => 'captcha',
        'options'    => array(
            'label'   => 'Please verify you are human',
            'captcha' => array(
                'class'   => 'recaptcha',
                'options' => array(
                    'pubkey'  => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
                    'privkey' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
                ),
            ),
        ),
        'attributes' => array(
            'required' => 'required'
        ),
    ),
);
```

### Requirement for Google ReCaptcha WebService

[](#requirement-for-google-recaptcha-webservice)

Register your domain to [`Google ReCaptcha WebService`](http://recaptcha.net/) to create a private key and a public key. Be sure that private key will not commit to VCS.

Workflow
--------

[](#workflow)

After filtering and validation of user input a new contact entity will persist in repository `MamuzContact`.

Events
------

[](#events)

For the sake of simplicity `Event` is used for FQN [`MamuzContact\EventManager\Event`](https://github.com/mamuz/MamuzContact/blob/master/src/MamuzContact/EventManager/Event.php).

The following events are triggered by `Event::IDENTIFIER` *mamuz-contact*:

NameConstantDescription*persist.pre*`Event::PRE_PERSISTENCE`Before contact entity persistence*persist.post*`Event::POST_PERSISTENCE`After contact entity persistence

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~53 days

Recently: every ~91 days

Total

9

Last Release

3918d ago

Major Versions

0.2.2 → 1.0.02015-08-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1cf66a1ce705b8bd26f30eb171db09bdd4fae0bc5997acbd747303dbaa3a03c?d=identicon)[mamuz](/maintainers/mamuz)

---

Top Contributors

[![mamuz](https://avatars.githubusercontent.com/u/4173317?v=4)](https://github.com/mamuz "mamuz (42 commits)")

---

Tags

contact-formdoctrinetwitter-bootstrapzf2zf2-moduledoctrinezf2formcontacttwitter bootstrap

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mamuz-mamuz-contact/health.svg)

```
[![Health](https://phpackages.com/badges/mamuz-mamuz-contact/health.svg)](https://phpackages.com/packages/mamuz-mamuz-contact)
```

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M70](/packages/zf-commons-zfc-user)[mamuz/mamuz-blog

Provides blog feature for ZF2 with Doctrine

101.1k1](/packages/mamuz-mamuz-blog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
