PHPackages                             vandres/craft-contact-form-extended - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vandres/craft-contact-form-extended

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

vandres/craft-contact-form-extended
===================================

Adds functionality to the Contact Form plugin

1.0.3(1y ago)142proprietaryPHPPHP &gt;=8.2CI passing

Since May 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vandres/craft-contact-form-extended)[ Packagist](https://packagist.org/packages/vandres/craft-contact-form-extended)[ RSS](/packages/vandres-craft-contact-form-extended/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Contact Form Extended
=====================

[](#contact-form-extended)

Adds functionality to the Contact Form plugin.

Feature Overview
----------------

[](#feature-overview)

- adds an additional simple spam check
    - it checks the time spent on a form
    - configure your logging

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.1.0 or later, and PHP 8.2 or later.

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

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “Contact Form Extended”. Then press “Install”.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require vandres/craft-contact-form-extended

# tell Craft to install the plugin
./craft plugin/install contact-form-extended
```

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

[](#configuration)

You can use the settings dialog in the control panel. But I would recommend creating a `contact-form-extended.php` in your config folder.

```
return [
    'secondsSpentOnFormThreshold' => 3, // 0 to disable
    'logSpam' => false,
    'logAll' => false,
];
```

Usage
-----

[](#usage)

Just add the following `prepareSubmission()` call somewhere in the form template. Example:

```

    {# prepare form submission check #}
    {{ craft.form.service.prepareSubmission() }}
    {{ hiddenInput('fromName', title ) }}

    {% if page is defined and page %}
        {{ redirectInput(page.url) }}
    {% endif %}

```

If you forget that call, all submissions might be marked as spam!

### Edge Case

[](#edge-case)

If you cache the contact form, the `prepareSubmission()` might not be called and the form would misbehave.

This is out of the scope of this plugin. I would recommend not caching contact forms or using some kind of AJAX solution. My preference is a combination of the plugins "No-Cache" and "Sprig".

Roadmap
-------

[](#roadmap)

- simple spam protection via "time spent on form"
- write filtered submissions to log (configurable)

Support my work
---------------

[](#support-my-work)

PayPal: [https://www.paypal.com/donate/?hosted\_button\_id=3WDU85HZCKMPA](https://www.paypal.com/donate/?hosted_button_id=3WDU85HZCKMPA)

Buy me a coffee:

Supporter
---------

[](#supporter)

1. [Ambition Creative](https://www.ambitioncreative.co.uk/): Icons

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance45

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Total

4

Last Release

454d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/837da81688d1b6f417141ac9d137856fdc83dbf67892efda8f28e80e7ed483de?d=identicon)[vandres](/maintainers/vandres)

---

Top Contributors

[![vandres](https://avatars.githubusercontent.com/u/1436383?v=4)](https://github.com/vandres "vandres (14 commits)")

### Embed Badge

![Health badge](/badges/vandres-craft-contact-form-extended/health.svg)

```
[![Health](https://phpackages.com/badges/vandres-craft-contact-form-extended/health.svg)](https://phpackages.com/packages/vandres-craft-contact-form-extended)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

395798.1k10](/packages/spicyweb-craft-neo)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[verbb/vizy

A flexible visual editor field for Craft.

4348.6k](/packages/verbb-vizy)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)

PHPackages © 2026

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