PHPackages                             phant/notifier - 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. phant/notifier

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

phant/notifier
==============

Manage notifications easily

0.3(1y ago)01.7kMITPHPPHP &gt;=8.1

Since Jan 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PhantPHP/notifier)[ Packagist](https://packagist.org/packages/phant/notifier)[ RSS](/packages/phant-notifier/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Notifier
========

[](#notifier)

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

[](#requirements)

PHP &gt;= 8.1

Install
-------

[](#install)

`composer require phant/notifier`

Usages
------

[](#usages)

```
use Phant\Notifier\Service\Handler as NotifierHandler;
use Phant\Notifier\Entity\Notification\Action as NotificationAction;
use Phant\Notifier\Entity\Notification\Type as NotificationType;
use Phant\Notifier\Factory\Notification as NotificationFactory;
use Phant\Notifier\Factory\Notification\Content as NotificationContentFactory;
use Phant\Notifier\Entity\Transport\Channel;
use Phant\Notifier\Entity\Transport\Collection as NotifierTransportCollection;
use Phant\Notifier\Entity\Transport\Email as NotifierTransportEmail;
use App\EmailBuilder;
use App\EmailSender;

$notifierHandler = new NotifierHandler(
	(new NotifierTransportCollection())
		->add(
			new NotifierTransportEmail(
				new EmailBuilder(),
				new EmailSender(),
				'user@domain.ext',
				'Best app'
			)
		)
);

$notifierHandler->dispatch(
	NotificationFactory::make(
		NotificationType::Information,
		NotificationContentFactory::make(
			'Hello world!',
			'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
			[
				'Foo' => 'Bar'
			]
		),
		new NotificationAction(
			'https://domain.ext/path',
			'Action'
		),
		'john.doe@domain.ext'
		Channel::Email
	)
);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance42

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~398 days

Total

3

Last Release

473d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ce749176c74e4c4fd7bd457cdad471fd1e0e14092259e60e7330724ce622dce?d=identicon)[Phant](/maintainers/Phant)

---

Top Contributors

[![lennyrouanet](https://avatars.githubusercontent.com/u/5269913?v=4)](https://github.com/lennyrouanet "lennyrouanet (15 commits)")

---

Tags

notificationnotification-phpnotification-servicenotifiernotifier-phpnotifier-servicenotification servicenotification-managernotification componentnotification sendernotifier managernotifier componentnotifier servicenotifier sender

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phant-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/phant-notifier/health.svg)](https://phpackages.com/packages/phant-notifier)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)

PHPackages © 2026

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