PHPackages                             gambare-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. [Framework](/categories/framework)
4. /
5. gambare-web/contact-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

gambare-web/contact-bundle
==========================

This is a contact bundle for Symfony 5

095PHP

Since Jan 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gambare-web/contact-bundle)[ Packagist](https://packagist.org/packages/gambare-web/contact-bundle)[ RSS](/packages/gambare-web-contact-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Contact Bundle
==============

[](#contact-bundle)

- Contact bundle for Symfony 5 with [EasyAdminBundle v3](https://symfony.com/doc/current/bundles/EasyAdminBundle/index.html) integration.

*Note : This Bundle is intended for personal use. But you are free to use it if you really want to*

Installation
============

[](#installation)

Open a command console, enter your project directory and execute:

```
composer require gambare-web/contact-bundle:dev-main
```

Configuration
=============

[](#configuration)

#### Activate doctrine extention

[](#activate-doctrine-extention)

```
stof_doctrine_extensions:
    orm:
        default:
            timestampable: true
```

*-TODO- automatize with a recipe*

#### Add Vich uploader config for file attachment

[](#add-vich-uploader-config-for-file-attachment)

```
# config/packages/vich_uploader.yaml
vich_uploader:
    mappings:
        message_attachement:
            uri_prefix: /message_file
            upload_destination: '%kernel.project_dir%/public/uploads/contact_message'
            namer: Vich\UploaderBundle\Naming\UniqidNamer
```

#### Generate Migration

[](#generate-migration)

```
php bin/console make:migration
php bin/console doctrine:migrations:migrate
```

#### Configure Symfony Mailer

[](#configure-symfony-mailer)

configure MAILER\_DSN in your .env.local (or user symfony/google-mailer on dev)

Add Twig namespace in config/packages/twig.yaml if you want to use the predefined twig template

```
twig:
    paths:
        '%kernel.project_dir%/vendor/gambare-web/contact-bundle/templates': gambare-web
```

Usage
=====

[](#usage)

Copy one exemple from src/Controller/ContactMessageController

You can change the form options about the fields you want to show and have as required using the FormType resolver default

```
$contact_form = $this->createForm(ContactMessageFormType::class, null, ['name_required' => false, 'file' => true]);
```

Twig integration
================

[](#twig-integration)

A bootstrap form is provided. You can include it or use it as exemple.

```
{% include '@gambare-web/_bootstrap_form.html.twig' %}
```

Email integration
=================

[](#email-integration)

One default html template is included. You can use it, extend it or use your own.

- The base template is : '@gambare-web/email/base\_email.html.twig'
- The demo template is : '@gambare-web/email/contact\_notif.html.twig'

The following parameters are used in the template.

```
            $email = (new TemplatedEmail())
                ->htmlTemplate('@gambare-web/email/contact_notif.html.twig')
                ->context(
                    [
                        'name'    => $contact->getName(),
                        'subject' => $contact->getSubject(),
                        'mail'    => $contact->getEmail(),
                        'phone'     => $contact->getPhone(),
                        'message' => $contact->getMessage(),
                        'logo_url' => 'https://.../img.png',
                        'logo_name' => 'W00tKorp',
                    ]
                );
```

EasyAdminBundle v3 integration
==============================

[](#easyadminbundle-v3-integration)

Create a ContactMessageCrudController class that extends ContactMessageDefaultCrudController

ContactMessageDefaultCrudController is extending the AbstractCrudController from EasyAdmin

Add an entry to your DashboardController

```
    public function configureMenuItems(): iterable
    {
        // [...]
        yield MenuItem::linkToCrud('Message', 'far fa-envelope', ContactMessage::class);
    }
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/270966?v=4)[Josh](/maintainers/kaizoku)[@kaizoku](https://github.com/kaizoku)

---

Top Contributors

[![kaizokou](https://avatars.githubusercontent.com/u/15847039?v=4)](https://github.com/kaizokou "kaizokou (3 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M296](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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