Skip to content

FmiKL/NewsletterBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewsletterBundle

A simple newsletter bundle for Symfony applications.

Compatibility

  • Symfony 6
  • Symfony 7.4 / 8.0

Setup

Clone the repository into your Symfony project and register the bundle:

return [
    App\Bundle\NewsletterBundle\NewsletterBundle::class => ['all' => true],
];

Import the bundle routes:

newsletter_bundle:
    resource: '@NewsletterBundle/config/routes.yaml'

Register the bundle templates:

twig:
    paths:
        '%kernel.project_dir%/src/Bundle/NewsletterBundle/templates': NewsletterBundle

Set the contact email:

parameters:
    contact_email: contact@example.com

Routes

  • POST /newsletter/subscribe
  • GET /newsletter/confirm
  • GET /newsletter/unsubscribe
  • POST /admin/newsletter/send

License

MIT

About

A simple newsletter bundle for Symfony applications.

Topics

Resources

License

Stars

Watchers

Forks

Contributors