PHPackages                             frequence-web/contact-bundle - 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. frequence-web/contact-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

frequence-web/contact-bundle
============================

Event-based contact bundle

1.0.4(8y ago)412.2k8[3 issues](https://github.com/yohang/FrequenceWebContactBundle/issues)[1 PRs](https://github.com/yohang/FrequenceWebContactBundle/pulls)MITPHPPHP ^5.3.3 || ^7.0

Since Jan 3Pushed 7y ago4 watchersCompare

[ Source](https://github.com/yohang/FrequenceWebContactBundle)[ Packagist](https://packagist.org/packages/frequence-web/contact-bundle)[ RSS](/packages/frequence-web-contact-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (7)Used By (0)

FrequenceWebContactBundle
=========================

[](#frequencewebcontactbundle)

[![Build Status](https://camo.githubusercontent.com/a0e903996a23dc1e2e5e3f88c5b015235e43dfc5ec5dfc7dfed7d1c4924d4273/68747470733a2f2f7472617669732d63692e6f72672f796f68616e672f4672657175656e6365576562436f6e7461637442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/yohang/FrequenceWebContactBundle)

An event-based Symfony2 Contact Bundle.

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

[](#installation)

### Install the bundle via composer

[](#install-the-bundle-via-composer)

```
 $ composer require frequence-web/contact-bundle:1.0.*
```

### Add the bundle to your `AppKernel` class

[](#add-the-bundle-to-your-appkernel-class)

```
    public function registerBundles()
    {
        return array(
            // ... Your bundles
            new \FrequenceWeb\Bundle\ContactBundle\FrequenceWebContactBundle(),
        );
    }
```

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

[](#configuration)

This bundle provides some configuration options :

```
frequence_web_contact:
    send_mails: true                # True to use the bundle EmailListener that send emails when contact form is submited
    to:         null                # The contact mail recipient
    from:       null                # The contact mail sender
    subject:    contact.message.new # The contact mail subject translation key
```

Routing
-------

[](#routing)

If you want to use the default bundle urls, just import the routing file in your application routing:

```
    _frequence_web_contact:
        resource: '@FrequenceWebContactBundle/Resources/config/routing.xml'
```

This will create 2 routes, with the same URL (/contact.html), one for displaying the contact form (GET), the other to submit data (POST)

Creating Listener
-----------------

[](#creating-listener)

If you want to make a more featured mail listener, or any other listener, you have to define your own. The dispatched event on success contact form submit is `contact.submit`, and receive a `FrequenceWeb\Bundle\ContactBundle\EventDispatcher\Event\MessageSubmitEvent`.

If you need an example, juste have a look to `FrequenceWeb\Bundle\ContactBundle\EventDispatcher\Listener\EmailContactListener`.

Extending
---------

[](#extending)

If you need more datas that the few ones provided by the `Contact` class and the `ContactType` form type, just override the `frequence_web_contact.type.class` and `frequence_web_contact.model.class` configuration parameters, they are used to instantiate services and can be extended without any limit.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~320 days

Recently: every ~306 days

Total

6

Last Release

3282d ago

PHP version history (2 changes)1.0.0PHP &gt;5.3.2

1.0.2PHP ^5.3.3 || ^7.0

### Community

Maintainers

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

---

Top Contributors

[![yohang](https://avatars.githubusercontent.com/u/608984?v=4)](https://github.com/yohang "yohang (36 commits)")[![alister](https://avatars.githubusercontent.com/u/173165?v=4)](https://github.com/alister "alister (1 commits)")[![Nek-](https://avatars.githubusercontent.com/u/972456?v=4)](https://github.com/Nek- "Nek- (1 commits)")[![winzou](https://avatars.githubusercontent.com/u/702928?v=4)](https://github.com/winzou "winzou (1 commits)")

---

Tags

eventbundlecontact

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/frequence-web-contact-bundle/health.svg)

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

###  Alternatives

[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[artgris/filemanager-bundle

FileManager is a simple Multilingual File Manager Bundle for Symfony

182420.8k9](/packages/artgris-filemanager-bundle)[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

31205.8k3](/packages/pixelopen-cloudflare-turnstile-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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