Giter VIP home page Giter VIP logo

ticketnotificationbundle's Introduction

E-mails notification for Hackzilla Ticketing Bundle

Simple add-on bundle that is build on top of Hackzilla Ticketing bundle in order to provide automatic e-mails notifications when a ticket is created or modified. The ticket's owner and every user with the role ROLE_TICKET_ADMIN get notified.

Requirements

Installation

Step 1: Make sure you already have HackzillaTicketBundle

Make sure HackzillaTicketBundle is already present in your composer.json:

{
    "require": {
        "hackzilla/ticket-bundle": "~2.0@dev",
        "friendsofsymfony/user-bundle": "~2.0@dev",
        "vich/uploader-bundle": "~1.0"
    }
}

Also make sure the Attachments additionnal feature is enabled.

Step 2: Download the bundle using composer

Require the bundle with composer:

$ composer require flodaq/ticket-notification-bundle "^1.0@dev"

Composer will install the bundle to your project's vendor/flodaq/ticket-notification-bundle directory.

Step 3: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
        new FOS\UserBundle\FOSUserBundle(),
        new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
        new Vich\UploaderBundle\VichUploaderBundle(),
        new Flodaq\TicketNotificationBundle\FlodaqTicketNotificationBundle(),
        // ...
        // Your application bundles
    );
}

Step 4: Configure the bundle

Add the following configuration to your config.yml file according to your e-mails sender's information.

config.yml

flodaq_ticket_notification:
    emails:
        sender_email:   '[email protected]'
        sender_name:    'Firstname LASTNAME'

Step 5: Custom templates (optional)

You can override default e-mails templates by configuring your custom ones in the config.yml file.

config.yml

    flodaq_ticket_notification:
        templates:
            new_html:       'YOURTicketBundle:Emails:ticket.new.html.twig'
            new_txt:        'YOURTicketBundle:Emails:ticket.new.txt.twig'
            update_html:    'YOURTicketBundle:Emails:ticket.update.html.twig'
            update_txt:     'YOURTicketBundle:Emails:ticket.update.txt.twig'

Pull requests

I'm open to pull requests for additional features and/or improvements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.