fond-of-spryker / contact
A simple contact form for spryker.
Installs: 8 774
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- spryker/mail: ^4.0.0
- spryker/twig: ^3.0.0
Requires (Dev)
- codeception/codeception: ^2.3
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.0
- phpro/grumphp: ^0.14
- sebastian/phpcpd: ^4.0
- spryker/code-sniffer: ^0.11
This package is auto-updated.
Last update: 2024-10-05 20:14:01 UTC
README
This is a simple contact form for spryker.
Install
1. Execute composer command
composer require fond-of-spryker/contact
2. Add controller provider in YvesBootstrap.php in getControllerProviderStack()
new ContactControllerProvider($isSsl),
3. Add mail plugin in Pyz Zed/Mail/MailDependencyProvider.php in MAIL_TYPE_COLLECTION
$mailCollection->add(new ContactMailTypePlugin());
4. Create your own form template under:
src/Pyz/Yves/Contact/Theme/default/index/index.twig
5. Append glossary entries from contact_glossary.csv to glossary.csv and execute commands
vendor/bin/console data:import:glossary
vendor/bin/console collector:storage:export
6. Create transfer objects
vendor/bin/console transfer:generate
7. Add this to your configuration file. This EMail receives the contact form.
// ---------- Contact
$config[\FondOfSpryker\Shared\Contact\ContactConstants::CONTACT_FORM_MAIL_RECEIVER] = 'example@example.org';
8. Enjoy
(Edit route in ContactControllerProvider if it's your wish)
/{$locale}/contacts