2017 © Pedro Peláez
 

library notifier

Send notifications using any delivery method.

image

notifier/notifier

Send notifications using any delivery method.

  • Sunday, February 8, 2015
  • by NoUseFreak
  • Repository
  • 3 Watchers
  • 14 Stars
  • 3,393 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 5 Forks
  • 11 Open issues
  • 11 Versions
  • 4 % Grown

The README.md

Notifier

Build Status Latest Stable Version Total Downloads Latest Unstable Version Dependency Status License, (*1)

Using this library, you can send messages to users following their preffered channels. This will help you focus on your application code and leave the message sending to your Notifier implementation., (*2)

Caution: Only use < 2.0 in production!, (*3)

Use Case

Say you want your users to choose how they receive notifications from your application. For example on a new private message you have them choose SMS, email or both. Notifier will help you handle these choices. From within your application you don't need to worry about what delivery type the user chose. You just send the message indicating what type the message is and Notifier will resolve the correct channels and send it., (*4)

Example

This is an example of the implementation of the MailChannel., (*5)

use Notifier\Mail\ParameterBag\MailMessageParameterBag;
use Notifier\Mail\ParameterBag\MailRecipientParameterBag;
use Notifier\Recipient\Recipient;
use Notifier\Message\Message;
use Notifier\Notifier;

$message = new Message(new InformationType());
$message->addParameterBag(new MailMessageParameterBag('Mail subject', 'Body...'));

$recipient = new Recipient();
$recipient->addParameterBag(new MailRecipientParameterBag('someone@example.com'));

// The ChannelResolver will decide to which channels a message of a specific type must be sent.
$notifier = new Notifier(new RecoverPasswordChannelResolver());
$notifier->sendMessage($message, array($recipient));

Current state

The project is in active development of 2.0.x. Please refer to 1.0.x if you want to use this in production., (*6)

Channels

Notifier is stripped of most channels. You can find a list of all available channels., (*7)

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code., (*8)

Fork the project, create a feature branch, and send us a pull request., (*9)

To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony. Make sure to check out php-cs-fixer as this will help you a lot., (*10)

If you would like to help take a look at the list of issues., (*11)

Requirements

PHP 5.3.2 or above, (*12)

Author and contributors

Dries De Peuter - dries@nousefreak.be - http://nousefreak.be, (*13)

See also the list of contributors who participated in this project., (*14)

License

Notifier is licensed under the MIT license., (*15)

The Versions

08/02 2015

dev-master

9999999-dev

Send notifications using any delivery method.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

24/11 2014

dev-formatted

dev-formatted

Send notifications using any delivery method.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

04/10 2013

0.5.x-dev

0.5.9999999.9999999-dev https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

messages notification

04/10 2013

0.5.1

0.5.1.0 https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

messages notification

16/08 2013

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

messages notification

16/08 2013

1.0.0

1.0.0.0 https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

messages notification

21/05 2013

0.5.0

0.5.0.0 https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

messages notification

15/05 2013

0.4.0

0.4.0.0 https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.4

 

The Development Requires

messages notification

25/02 2013

0.3.0

0.3.0.0 https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.4

 

The Development Requires

messages notification

02/12 2012

0.2.0

0.2.0.0 https://github.com/nousefreak/Notifier

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.4

 

messages notification

02/12 2012

0.1.0

0.1.0.0 http://notifier.nousefreak.be

Notifier, direct notifications.

  Sources   Download

MIT

The Requires

  • php >=5.3.4

 

messages notification