2017 © Pedro PelĂĄez
 

library messenger-bundle

Simplify message sending processes in a Symfony project

image

yokai/messenger-bundle

Simplify message sending processes in a Symfony project

  • Monday, April 30, 2018
  • by yann-eugone
  • Repository
  • 5 Watchers
  • 2 Stars
  • 8,929 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 4 Open issues
  • 16 Versions
  • 69 % Grown

The README.md

YokaiMessengerBundle

:warning: This package is abandoned and no longer maintained. The author suggests using the symfony/notifier package instead., (*1)

Latest Stable Version Latest Unstable Version Total Downloads License, (*2)

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight, (*3)

Simplify message sending processes in a Symfony2 project., (*4)

Imagine that your application sends emails, triggers UI notifications, sends SMS. You are using several libraries to do it. And if you did not factorize your code, you will have bunch of copy paste in every place you are sending something., (*5)

Worst, if you was expecting to send an email some day, you may send also an SMS tomorrow. If that happen, you will need to rewrite your code..., (*6)

This bundle is trying to help with all these problems, providing a simple way to configure a distribute these messages., (*7)

Principles

Message

A message represent the fact that your application is sending something., (*8)

Creating a message is as easy as creating a service of class Yokai\MessengerBundle\Message with at least 1 yokai_messenger.message tag, for each tag you specify the channel on which the message should be distributed., (*9)

You can also register it using this bundle configuration., (*10)

Recipient

A recipient represent the information about the target of your message., (*11)

Every channel is free to support only certain types of recipient (mostly by checking interfaces)., (*12)

Channel

A channel represent a way to distribute messages., (*13)

This bundle come with some built-in channels:, (*14)

Creating a channel is as easy as creating a service that implements Yokai\MessengerBundle\Channel\ChannelInterface with the yokai_messenger.channel tag., (*15)

A channel will be asked to handle a delivery whenever a message is about to be sent., (*16)

Delivery

A delivery (Yokai\MessengerBundle\Delivery) represent the message about to be sent to a recipient for a channel. It is mainly matter of storing all the data in the same place., (*17)

Creating a delivery is an internal process, that must be done by the sender., (*18)

Sender

The sender is your entry point for sending messages., (*19)

It centralize the configuration of which messages to send over which channels., (*20)

Installation

Add the bundle as dependency with Composer

``` bash $ php composer.phar require yokai/messenger-bundle, (*21)


### Enable the bundle in the kernel ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = [ // ... new Yokai\MessengerBundle\YokaiMessengerBundle(), ]; }

Configuration

Please read the dedicated documentation., (*22)

Usage

Please read the dedicated documentation., (*23)

MIT License

License can be found here., (*24)

Authors

The bundle was originally created by Yann Eugoné., (*25)

See the list of contributors., (*26)

The Versions

13/01 2018

dev-symfony-4-symfony-flex-support

dev-symfony-4-symfony-flex-support

Simplify message sending processes in a Symfony project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

09/06 2017
08/06 2017

dev-swiftmailer-6-compatibility

dev-swiftmailer-6-compatibility

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

08/06 2017
08/06 2017

dev-bugfix-symfony-flex-compatibility

dev-bugfix-symfony-flex-compatibility

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

01/04 2017

dev-sensio-insight-fixes

dev-sensio-insight-fixes

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

01/04 2017

dev-register-entities-only-if-needed

dev-register-entities-only-if-needed

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

01/04 2017

dev-travis-matrix

dev-travis-matrix

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

01/04 2017

dev-clean/code-standards

dev-clean/code-standards

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

21/12 2016

v1.1

1.1.0.0

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

21/12 2016

dev-additional_mobile_data

dev-additional_mobile_data

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

11/10 2016

dev-fix-travis-ci

dev-fix-travis-ci

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

15/09 2016

v1.0

1.0.0.0

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné

03/08 2016

v0.1.0

0.1.0.0

Simplify message sending processes in a Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yann Eugoné