Download the PHP package phil/contact-form-bundle without Composer
On this page you can find all versions of the php package phil/contact-form-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phil/contact-form-bundle
More information about phil/contact-form-bundle
Files in phil/contact-form-bundle
Package contact-form-bundle
Short Description A "write to us" form for Symfony: name, email, subject and message, protected by phil/spam-protection-bundle without a captcha, sent by Symfony Mailer from the site's own address with the visitor in Reply-To
License MIT
Homepage https://ph-il.ca
Informations about the package contact-form-bundle
phil/contact-form-bundle
A "write to us" page for Symfony, protected from spam without a captcha.
phil/contact-form-bundle gives a contact page: a form with a name, an email, a subject and a message. A valid message goes by Symfony Mailer to the configured recipients, then the page redirects to itself and says the message left, so reloading sends nothing twice. Labels, messages and the email are in English and French. The bundle does not keep the messages, though an application that sends its email through an asynchronous Messenger transport keeps them in its queue until they leave, as Mailing explains. It does not show a captcha. It sends no copy to the visitor, since a copy would let anyone send a text of their choice to any address through the site.
It is for any Symfony site that wants visitors to write to it without exposing an email address. The form carries the
protection of phil/spam-protection-bundle, which calls no third party. The email leaves from the site's own address,
because a visitor's address in From fails the domain's SPF and DMARC checks and lands in spam. The visitor is in
Reply-To, so answering answers them.
The page works as it comes, with a route and a template an application replaces to fit its layout. For a page of its
own design, an application uses ContactFormType and ContactMailer in its own controller. To write to someone other
than the site, such as an organisation of a directory, it replaces the Recipients port with its own service.
Status
| Part | State |
|---|---|
ContactFormType and ContactMessage, protected and checked |
Implemented and tested |
ContactMailer: from the site, Reply-To the visitor, headers safe |
Implemented and tested |
ContactFormController and config/routes.php |
Implemented and tested |
The Recipients port, to write to someone else than the site |
Implemented and tested |
| Templates and translations, English and French | Implemented and tested |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, registering, the route. |
| Configuration | Every key, and the services. |
| The page | The form, what is checked, the responses, the templates. |
| Mailing | What the email holds, and why. |
| Extension points | Recipients, and using the form elsewhere. |
| Testing | How the bundle is tested. |
| Reference | Every type of the bundle. |
Quick start
Requirements
PHP 8.5 or later with ext-filter; phil/spam-protection-bundle 0.1; Symfony 8.2's form, HTTP foundation, mailer, MIME, validator,
Twig bridge and dependency injection; Twig 3; a PSR-3 logger.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.
License
MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.
All versions of contact-form-bundle with dependencies
ext-filter Version *
phil/spam-protection-bundle Version ^0.1@dev
psr/log Version ^3.0
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/form Version ^8.2
symfony/http-foundation Version ^8.2
symfony/mailer Version ^8.2
symfony/mime Version ^8.2
symfony/options-resolver Version ^8.2
symfony/twig-bridge Version ^8.2
symfony/validator Version ^8.2
twig/twig Version ^3.21