mremi/contact-bundle
Symfony2 bundle that adds a ready-to-use contact form with optional Contact entity, configurable routing and translations. Install via Composer, enable the bundle, configure it, import routes, and optionally update your DB schema.
symfony/http-foundation, symfony/validator, and symfony/translation as Laravel services.tightenco/ziggy + twig/extra-bundle).spatie/laravel-contact) may be preferable.symfony/validator, symfony/translation), which may conflict with Laravel’s native systems or increase bundle size.FormBuilder or EventDispatcher may not map cleanly to Laravel’s equivalents.spatie/laravel-contact, beberlei/fluent-bundle) that achieve similar goals?symfony/validator) and assess conflicts.composer require mremi/contact-bundle
config/bundles.php (if using Symfony Flex) or manually in AppKernel.php.translator component).tightenco/ziggy + twig/extra-bundle).{# Twig #}
{{ form_start(form) }}
{{ form_widget(form) }}
{# Blade #}
<form method="POST" action="{{ route('contact.submit') }}">
@csrf
<input type="text" name="name" required>
<!-- ... -->
</form>
symfony/validator as a service provider).HttpFoundation, Validator, or Translation.EventDispatcher may not map cleanly to Laravel’s events; consider replacing with Laravel’s event system.symfony/validator) may introduce breaking changes in a Laravel context. Requires:
composer.json.FormBuilder exceptions) may be harder to diagnose in a Laravel stack. Requires:
translator and validator components can be cached via Laravel’s cache drivers (e.g., Redis).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Symfony component breaking change | Form validation/storage fails | Pin Symfony versions; use Laravel alternatives for critical paths. |
| Twig template errors | Frontend rendering breaks | Replace Twig with Blade early; use a template migration tool. |
| Doctrine-Eloquent mismatch | Submission data loss/corruption | Build a robust adapter layer; test with sample data. |
| CSRF/spam bypass | Security vulnerabilities | Layer Laravel’s built-in CSRF protection; integrate honeypot fields. |
| Dependency conflicts | App crashes on load | Isolate Symfony components in a micro-service or use Laravel’s service container. |
FormBuilder, EventDispatcher) if new to the team.How can I help you explore Laravel packages today?