alexbridge / symfony-bundle-contact
Bundle for Symfony 2 with a general contact form for your website
Package info
github.com/alexbridge/symfony-bundle-contact
Type:symfony-bundle
pkg:composer/alexbridge/symfony-bundle-contact
dev-master
2016-06-13 17:44 UTC
Requires
- sensio/framework-extra-bundle: ~3.0,>=3.0.2
- symfony/framework-bundle: ~2.3
This package is not auto-updated.
Last update: 2026-03-15 04:01:49 UTC
README
Bundle for Symfony 2 with a generic contact form for your website.
Fields:
- Name
- Subject
- Message
Installation:
-
composer require alexbridge/symfony-bundle-contact -
Enable Bundle
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Alexo\ContactBundle\ContactBundle(), ); } -
Register routes
// app/config/routing.yml contact: resource: "@ContactBundle/Controller/" type: annotation prefix: /contact
Configuration:
contact:
# an array email addresses to receive contact messages
receiver_emails: []
Routes:
- add
contactroute to your views and route generation - access
/contacturi to see contact form