PHPackages                             webtorque/silverstripe-notifications - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. webtorque/silverstripe-notifications

ActiveSilverstripe-module[Mail &amp; Notifications](/categories/mail)

webtorque/silverstripe-notifications
====================================

Simple service provider for sending notification to members over different media.

v1.0.2(7y ago)44462[4 issues](https://github.com/webtorque/silverstripe-notifications/issues)MITPHPPHP &gt;= 5.5.0, &lt;=7.2

Since Aug 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/webtorque/silverstripe-notifications)[ Packagist](https://packagist.org/packages/webtorque/silverstripe-notifications)[ RSS](/packages/webtorque-silverstripe-notifications/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (6)Versions (9)Used By (0)

silverstripe-notifications [![Build Status](https://camo.githubusercontent.com/4c536c45cf3be2af2919d791f7c375d2786102d0db7dacb4ecd177ce34f136dc/68747470733a2f2f7472617669732d63692e6f72672f776562746f727175652f73696c7665727374726970652d6e6f74696669636174696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/webtorque/silverstripe-notifications)
======================================================================================================================================================================================================================================================================================================================================================================

[](#silverstripe-notifications-)

A SilverStripe module for handling notifications to user. This can be use to send notifications via various mediums to a Member.

Various notification are handled via a NotificationProvider. e.g.: `NotificationEmailProvider` will send email notifications while `NotificationDataObjectProvider` will store notifications in a DataObject for display one the website frontend.

Requirements
------------

[](#requirements)

- PHP 5.5 or greater (tested with up to PHP 7.1)
- `silverstripe/framework:^3.2`
- `silverstripe/cms:^3.2`

### Optional

[](#optional)

- `giggsey/libphonenumber-for-php:^8.0`

Installing `libphonenumber-for-php` provides better mobile phone number validation.

Installation
------------

[](#installation)

```
composer require webtorque/silverstripe-notifications:^0.0
```

Configuration
-------------

[](#configuration)

Create a YAML config file to configure the `NotificationService`. You need to speciify a notification parser and a list of notification providers.

```
NotificationService:
  constructor:
    0: '%$NotificationParser'
    1:
      - "%$NotificationEmailProvider"
      - "%$NotificationDataObjectProvider"
```

The built-in `NotificationParser` will read notification format information from a `NotificationType` data objects. Notification types can be edited in the CMS. The expectation is that notification types will be predefined in your YML config. Creation or deletion of notification type are disallowed for all users.

```
NotificationType:
  default_records:
    - SystemName: 'RegistrationApproval'
      Name: 'Registration Approval'

    - SystemName: 'RegistrationApproved'
      Name: 'Registration Approved'

    - SystemName: 'NewPatientRequest'
      Name: 'New Patient Request'

    - SystemName: 'PatientRequestApproved'
      Name: 'Patient Request Approved'

    - SystemName: 'PatientRequestDeclined'
      Name: 'Patient Request Declined'
```

Usage
-----

[](#usage)

```
$service = Injector::inst()->get('NotificationService');
$deliveries = $service->send(
    'RegistrationApproval',                         # Notification type system name.
    ['extra' => 'Data to inject in the message'],   # Abritary data to inject in the NotificationParser.
    Member::currentUser(),                          # User who should receive the notification.
    '/notification/call-to-action-url'              # Optional Call-to-Action URL.
);

# List of NotificationFailureException for providers who failed to deliver the notification.
$deliveries->getFailures();

# List of response from providers delivered their notification as expected.
$deliveries->getDeliveries();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Recently: every ~70 days

Total

8

Last Release

2869d ago

Major Versions

v0.2.0 → v1.0.02018-01-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/08ee58ace40393521eae00decc0bc3b74d29291e9630e84b2831b38953aaca33?d=identicon)[webtorque](/maintainers/webtorque)

---

Top Contributors

[![maxime-rainville](https://avatars.githubusercontent.com/u/1168676?v=4)](https://github.com/maxime-rainville "maxime-rainville (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webtorque-silverstripe-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/webtorque-silverstripe-notifications/health.svg)](https://phpackages.com/packages/webtorque-silverstripe-notifications)
```

###  Alternatives

[azt3k/abc-silverstripe-mailer

Library that adds smtp mail support to Silverstripe

1425.1k](/packages/azt3k-abc-silverstripe-mailer)[camfindlay/apes

The Automated Provision of Email Services (APES) module will allow you to set up an automated sync mechanism between the SilverStripe Member DataObject and MailChimp.

122.6k](/packages/camfindlay-apes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
