PHPackages                             fbeen/contactformbundle - 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. [API Development](/categories/api)
4. /
5. fbeen/contactformbundle

ActiveSymfony-bundle[API Development](/categories/api)

fbeen/contactformbundle
=======================

This Bundle adds contactform integration in your Symfony project. It lets you render and process contactforms and add them to the database. Includes a Sonata admin class to view the contact requests in the admin panel.

V1.0.4(7y ago)012MITPHPPHP ^5.5.9|^7.0

Since Feb 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Fbeen/contactformbundle)[ Packagist](https://packagist.org/packages/fbeen/contactformbundle)[ RSS](/packages/fbeen-contactformbundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

FbeenContactformBundle
======================

[](#fbeencontactformbundle)

This Bundle adds contactform integration in your Symfony project. It lets you render and process contactforms and add them to the database. Includes a Sonata admin class to view the contact requests in the admin panel

### Features include:

[](#features-include)

- Doctrine ORM database storage of your contact requests
- Bootstrap ready pages and forms
- Sonata admin integration
- Login with just their mailaddress and password
- email admins and/or user a confirmation
- Use your own ContactRequest entity
- Use your own ContactRequest form type

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

[](#installation)

Using composer:

1. Add `"fbeen/contactformbundle": "dev-master"` to the require section of your composer.json project file.

```
    "require": {
        ...
        "fbeen/contactformbundle": "dev-master"
    },

```

2. run composer update:

    $ composer update
3. Add the bundles to the app/AppKernel.php:

```
        $bundles = array(
            ...
            new Fbeen\MailerBundle\FbeenMailerBundle(),
            new Fbeen\ContactformBundle\FbeenContactformBundle(),
        );

```

4. add routes to app/config/routing.yml

```
fbeen_user:
    resource: "@FbeenContactformBundle/Resources/config/routing.yml"
    prefix:   /contact

```

5. Enable Translation in `app/config/config.yml`

```
parameters:
    locale: en

framework:
    translator:      { fallbacks: ["%locale%"] }

```

6. Update your database schema

```
$ bin/console doctrine:schema:update --force

```

7. \[Optional\] Add minimal configuration for the FbeenContactformBundle in `app/config/config.yml`This are all the configuration parameters with their defaultvalue:

```
fbeen_contactform:
    base_template: "FbeenContactformBundle::base.html.twig"
    redirect_after_submit: fbeen_contactform_confirmation
    contact_request_entity: Fbeen\ContactformBundle\Entity\ContactRequest
    contact_form_type: Fbeen\ContactformBundle\Form\ContactRequestType
    email_users: true
    email_users: false

```

8. \[Optional\] Use your own ContactRequest Entity That is as simple as making any entity. There are only two things

- Your entity must implement `Fbeen\ContactformBundle\Model\ContactRequestInterface`

```
