PHPackages                             digiaonline/notification-wrapper - 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. digiaonline/notification-wrapper

AbandonedArchivedLibrary

digiaonline/notification-wrapper
================================

A super-basic wrapper for notifications/messages

1.0.0(7y ago)045.6k↓50%MITPHPPHP &gt;=7.1

Since Dec 12Pushed 7y ago3 watchersCompare

[ Source](https://github.com/digiaonline/notification-wrapper)[ Packagist](https://packagist.org/packages/digiaonline/notification-wrapper)[ RSS](/packages/digiaonline-notification-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

notification-wrapper
====================

[](#notification-wrapper)

[![Build Status](https://camo.githubusercontent.com/78e7fa6e15a39cd2551f6427cd724f6f20eaff8340d404c6cbe6072f70953a0d/68747470733a2f2f7472617669732d63692e6f72672f64696769616f6e6c696e652f6e6f74696669636174696f6e2d777261707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/digiaonline/notification-wrapper)

A super-basic wrapper for notifications/messages

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

[](#installation)

```
composer require digiaonline/notification-wrapper
```

Usage
-----

[](#usage)

```
// Create a notification
$notification = new Notification('TYPE_FOO', ['id' => 1, 'name' => 'John']);

// Encode it as JSON (now you can send it somewhere)
$json = \json_encode($notification);

// Decode the notification on the other end
$notification = Notification::fromJson($json);

var_dump($notification->getType() === 'TYPE_FOO'); // true
var_dump($notification->getPayload() === ['id' => 1, 'name' => 'John']); // true
```

License
-------

[](#license)

MIT

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7e28ec3bf2ff3ffcdd8c947f54d53d4dae86939bea2a7316cfde0b10410e9ee?d=identicon)[Jalle19](/maintainers/Jalle19)

---

Top Contributors

[![Jalle19](https://avatars.githubusercontent.com/u/1106133?v=4)](https://github.com/Jalle19 "Jalle19 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/digiaonline-notification-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/digiaonline-notification-wrapper/health.svg)](https://phpackages.com/packages/digiaonline-notification-wrapper)
```

PHPackages © 2026

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