2017 © Pedro Peláez
 

typo3-cms-extension noti

image

smichaelsen/noti

  • Tuesday, November 8, 2016
  • by smichaelsen
  • Repository
  • 1 Watchers
  • 6 Stars
  • 206 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Noti

Your TYPO3 notification API

Sending an email notification for a certain event is very common requirement for extension developers and of course it's not that hard. Using the TYPO3 MailMessage class you'll be done in a few minutes., (*1)

But wait.. the client wants to configure the recipient mail addresses? Don't rack your brain where to put the configuration. Use Noti!, (*2)

What does it do?

Using noti an extension can trigger an event like "A new user registered", "we received a new product rating", "the daily data import went wrong"., (*3)

In the TYPO3 backend you can create subscription records for those events., (*4)

Backend form screenshot, (*5)

Right now there are two notification types available:, (*6)

Email Notification

Let's you configure a list of mail addresses that receive a notification when the event is triggered., (*7)

Slack Notification

Sends a message to our favorite chat app when the event is triggered., (*8)

How do I implement it in my extension?

In your ext_localconf.php register your event:, (*9)

\Smichaelsen\Noti\EventRegistry::registerEvent(
    (new \Smichaelsen\Noti\Domain\Model\Event('myUniqueEventIdentifier', $_EXTKEY))
        ->setTitle('New user registered') // LLL reference is possible and recommended here
        ->addPlaceholder('userName', 'The user name') // This will appear in the backend to show the available placeholders to the user
);

Then in your code trigger the event like this:, (*10)

EventRegistry::triggerEvent(
    'myUniqueEventIdentifier',
    [
        'userName' => $newUser->getUsername(),
    ]
);

The Versions

08/11 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

08/11 2016

0.3.0

0.3.0.0

  Sources   Download

The Requires

 

08/11 2016

dev-feature/notify-exceptions

dev-feature/notify-exceptions

  Sources   Download

The Requires

 

07/10 2016

0.2.1

0.2.1.0

  Sources   Download

The Requires

 

06/10 2016

0.2.0

0.2.0.0

  Sources   Download

The Requires

 

06/10 2016

0.1.1

0.1.1.0

  Sources   Download

The Requires

 

06/10 2016

0.1.0

0.1.0.0

  Sources   Download

The Requires