PHPackages                             org\_heigl/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. org\_heigl/contact

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

org\_heigl/contact
==================

Contact-Form using a honeypot for spam-protection

1.0.1(9y ago)3266[1 issues](https://github.com/heiglandreas/OrgHeiglContact/issues)MITPHPPHP ^7.0

Since Sep 13Pushed 7y ago3 watchersCompare

[ Source](https://github.com/heiglandreas/OrgHeiglContact)[ Packagist](https://packagist.org/packages/org_heigl/contact)[ Docs](http://github.com/heiglandreas/OrgHeiglContact)[ RSS](/packages/org-heigl-contact/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (4)Used By (0)

Org\_Heigl\\Contact
===================

[](#org_heiglcontact)

[![Build-Status](https://camo.githubusercontent.com/31b53e2fc4659492bf022b87898baa713a0e71f2ec4fa517dfffee83d456217e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f686569676c616e64726561732f4f7267486569676c436f6e746163742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/heiglandreas/OrgHeiglContact)[![Coverage Status](https://camo.githubusercontent.com/05b8826a37bd3028043d9f1008a45d719d23f3030fad26f163c3f206df9061ca/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f686569676c616e64726561732f4f7267486569676c436f6e746163742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/heiglandreas/OrgHeiglContact?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e7385c79bc606457ecca326769f49d25ad30061599e695ad6b0c30529a543885/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686569676c616e64726561732f4f7267486569676c436f6e746163742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/heiglandreas/OrgHeiglContact/?branch=master)[![Code Climate](https://camo.githubusercontent.com/944830bc21bd19ac7e649f0096adfa5d4c3be2e2ba9ff1db941023b1380f308f/68747470733a2f2f6c696d612e636f6465636c696d6174652e636f6d2f6769746875622f686569676c616e64726561732f4f7267486569676c436f6e746163742f6261646765732f6770612e737667)](https://lima.codeclimate.com/github/heiglandreas/OrgHeiglContact)[![Codacy Badge](https://camo.githubusercontent.com/cabe9e7af6fcdb62aac5dac71e9a43f09f776fcaa11b2613b5da66144ba69124/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3866313763363162343632363434353062643238333634396338653433343165)](https://www.codacy.com/app/github_70/OrgHeiglContact?utm_source=github.com&utm_medium=referral&utm_content=heiglandreas/OrgHeiglContact&utm_campaign=Badge_Grade)[![SensioLabsInsight](https://camo.githubusercontent.com/4e9bc5cb81dbd6adae6e0f73b6accf80465bf7856e4006efb0cf89026bd2ae21/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61393933353732362d643431612d343030632d626130622d3065396665623261346662372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/a9935726-d41a-400c-ba0b-0e9feb2a4fb7)

[![Latest Stable Version](https://camo.githubusercontent.com/23af18f0618276b233b1a364318a089e54ade73d03a131190255eb5f78259e1a/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f636f6e746163742f762f737461626c65)](https://packagist.org/packages/org_heigl/contact)[![Total Downloads](https://camo.githubusercontent.com/5ce72cff00089a830604b17265a19b4a310262c48fcca1d6c3495cf8ce528ce4/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f636f6e746163742f646f776e6c6f616473)](https://packagist.org/packages/org_heigl/contact)[![License](https://camo.githubusercontent.com/3d7cdacade3d70c049670aacd66dd03a1a3cdea442149e0b4948d144c6996ee9/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f636f6e746163742f6c6963656e7365)](https://packagist.org/packages/org_heigl/contact)[![composer.lock](https://camo.githubusercontent.com/737e30863860a895aa71652cc77596c122e2d17dcf344aea11e3d4909c4be27e/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f636f6e746163742f636f6d706f7365726c6f636b)](https://packagist.org/packages/org_heigl/contact)

This Modules provides a simple contact-form with spam-protection using a honeypot. It is based on the [PhlyContact-Module](https://github.com/phly/PhlyContact) by Matthew WeierOPhinney.

The idea of the honeypot is based on a [blogpost by Lorna Jane Mitchell](https://lornajane.net/posts/2012/wordpress-contact-form-7-without-captcha)

The contact form is for example used at php.ug) and so far I haven't had spam from it in over 4 years. So the honeypot seems to be working. :)

Installation
------------

[](#installation)

Install the package using [composer](https://getcomposer.org).

```
    composer require org_heigl/contact
```

Usage
-----

[](#usage)

1. In your application.conf-file add the Module to the list of modules

```
    return [
         'modules' => [
             'Org_Heigl\Contact',
         ]
    ]
```

2. Configure your settings by copying the file `vendor/org_heigl/contact/config/module.org-heigl-contact.local.php.-dist`to your applications `autoload`-folder (removing the `.dist` on the way) and then altering the content.

```
    return [
        'OrgHeiglContact' => [
            'mail_transport' => [
    //           'class'   => 'Zend\Mail\Transport\Smtp',
    //           'options' => [
    //               'host'             => 'localhost',
    //               'port'             => 587,
    //               'connectionClass'  => 'login',
    //               'connectionConfig' => [
    //                   'ssl'      => 'tls',
    //                   'username' => 'contact@your.tld',
    //                   'password' => 'password',
    //               ],
    //           ],
                 'class'  => 'File',
                 'options' => array(
                     'path' => sys_get_temp_dir(),
                 ],
            ],
            'message' => [
                 // These can be either a string, or an array of email => name pairs
                'to'     => 'contact@your.tld',
                'from'   => 'contact@your.tld',
                // This should be an array with minimally an "address" element, and
                // can also contain a "name" element
                'sender' => array(
                    'address' => 'contact@your.tld'
                ],
            ],
        ],
    ]
```

For the `mail_transport`-settings you may want to have a look at [Zend\\Mail](https://github.com/zendframework/zend-mail).

3. Link to the Form using `$this->url('contact')` in your view. This will render the form in your view.
4. There is no step four.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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 ~0 days

Total

2

Last Release

3371d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ae5183aaad2bc7453230704bd6991dc6ccbcd6e775c6a29efdc94350a69f247?d=identicon)[heiglandreas](/maintainers/heiglandreas)

---

Top Contributors

[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (39 commits)")

---

Tags

contact-formhoneypotmodulephpzend-frameworkspamformcontactHoneypot

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/org-heigl-contact/health.svg)](https://phpackages.com/packages/org-heigl-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)[stroker/form

ZF2 module for extending forms with live clientside validation

4157.1k](/packages/stroker-form)[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[isometriks/spam-bundle

Provides spam protection for Symfony forms

46200.6k1](/packages/isometriks-spam-bundle)[stefangabos/zebra_form

A jQuery augmented PHP library for creating and validating HTML forms

981.2k](/packages/stefangabos-zebra-form)[janvince/smallcontactform

Simple but flexible multi language contact form builder with custom fields, validation and passive antispam

307.4k](/packages/janvince-smallcontactform)

PHPackages © 2026

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