2017 © Pedro Peláez
 

library deploy-notify-bundle

Send notifications for Symfony application deployment

image

headsnet/deploy-notify-bundle

Send notifications for Symfony application deployment

  • Monday, July 9, 2018
  • by benr77
  • Repository
  • 1 Watchers
  • 0 Stars
  • 547 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 19 % Grown

The README.md

Symfony Deployment Notifications

Send email notifications to one or more recipients using a simple console command that can be executed by your deployment process., (*1)

The notification can be sent to one or more recipients, and can optionally include the application change log file in the email content., (*2)

Installation

Install with Composer, (*3)

composer require headsnet/deployment-notification-bundle, (*4)

Add bundle to AppKernel.php, (*5)

public function registerBundles()
{
    $bundles = array(
        // ...
        new Headsnet\DeployNotifyBundle\HeadsnetDeployNotifyBundle(),
    );
}

Configuration

Add required configuration in app/config.yml, (*6)

headsnet_deploy_notify:
  app_name: My Application
  email:
    sender_email: app@domain.com
  recipients:
    - { name: Joe Bloggs, email: joe@email.com }
    - { name: John Smith, email: john@example.com }

You can optionally include a change log file in the email template. Just specify the name of the change log file:, (*7)

headsnet_deploy_notify:
  changelog:
    filename: CHANGES.md

Markdown files ending with a .md extension will automatically be parsed in to HTML., (*8)

You can also override the mailer used to send the mails with your own service., (*9)

headsnet_deploy_notify:
  mailer: swiftmailer.mailer.my_mailer

Usage

Simply execute the console command from your chosen deployment system., (*10)

bin/console headsnet:deploy:notify, (*11)

Configuration Reference

headsnet_deploy_notify:
    app_name:                 ~  # Required
    mailer:                   swiftmailer.mailer.default
    email:
        sender_email:         ~  # Required
        sender_name:          '' # Optional
        subject:              'Deployment Notification'
    changelog:
        filename:             ~  # If specified, changelog contents will be included in email
        path:                 /  # Default is project root dir
        public_url:           ~  # Optionally add link to changelog in email
    recipients:
        - { name: ~, email: ~ }
        - { name: ~, email: ~ }

Contributing

Contributions are welcome. Please submit via pull requests., (*12)

The Versions

09/07 2018
07/04 2018
02/10 2017

v0.1.4

0.1.4.0

Send notifications for Symfony application deployment

  Sources   Download

MIT

The Requires

 

28/09 2017

v0.1.3

0.1.3.0

Send notifications for Symfony application deployment

  Sources   Download

MIT

The Requires

 

28/09 2017

v0.1.2

0.1.2.0

Send notifications for Symfony application deployment

  Sources   Download

MIT

The Requires

 

19/09 2017

v0.1.1

0.1.1.0

Send notifications for Symfony application deployment

  Sources   Download

MIT

The Requires

 

15/09 2017

v0.1.0

0.1.0.0

Send notifications for Symfony application deployment

  Sources   Download

MIT

The Requires