Download the PHP package kikwik/double-opt-in-bundle without Composer
On this page you can find all versions of the php package kikwik/double-opt-in-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kikwik/double-opt-in-bundle
More information about kikwik/double-opt-in-bundle
Files in kikwik/double-opt-in-bundle
Package double-opt-in-bundle
Short Description Double opt-in management for Doctrine 2 entities
License MIT
Informations about the package double-opt-in-bundle
KikwikDoubleOptInBundle
Double opt-in management for Doctrine 2 entities in symfony 4.4 and 5.x
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Configuration
Configure the symfony/mailer component in your .env
file:
Import double opt in check routes in config/routes.yaml
:
Create the config/packages/kikwik_double_opt_in.yaml
config file, set the sender_email
parameter
and define it in your .env file
Implements DoubleOptInInterface
to your classes or use the DoubleOptInTrait
:
Make migrations and update your database
Usage
Every time you persist a new entity which implements DoubleOptInInterface a confirmation email is sent.
If you want to disable the confirmation email (useful when importing data) just call disableDoubleOptIn
before persisting your entity
To resend the confirmation email autowire the DoubleOptInMailManager
service and call sendEmail
(be sure that $doubleOptInSecretCode
field is not empty)
Customization
Copy translations file from vendor/kikwik/double-opt-in-bundle/src/Resources/translations/KikwikDoubleOptInBundle.xx.yaml
to translations/KikwikDoubleOptInBundle.xx.yaml
and make changes here.
EventListener
After a successful double-opt-in confirmation the bundle will dispatch the DoubleOptInVerifiedEvent
custom event,
so you can listen for it and do your stuff.
All versions of double-opt-in-bundle with dependencies
doctrine/orm Version ^2.7
symfony/event-dispatcher Version ^4.4|^5.0
symfony/framework-bundle Version ^4.4|^5.0
symfony/mailer Version ^4.4|^5.0
symfony/translation Version ^4.4|^5.0
symfony/twig-bridge Version ^4.4|^5.0