PHPackages                             fazland/notifire - 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. fazland/notifire

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

fazland/notifire
================

1.0.0(7y ago)36.0k1MITPHPPHP &gt;=7.0CI failing

Since Aug 24Pushed 6y ago4 watchersCompare

[ Source](https://github.com/fazland/Notifire)[ Packagist](https://packagist.org/packages/fazland/notifire)[ RSS](/packages/fazland-notifire/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (11)Versions (8)Used By (1)

Notifire
========

[](#notifire)

[![Build Status](https://camo.githubusercontent.com/2ea90d03c1439dc5f3b8b90c3ebfa876be3161e2798484d4a7357f66f28cfb3b/68747470733a2f2f7472617669732d63692e6f72672f66617a6c616e642f4e6f7469666972652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fazland/Notifire)

Notifire is a PHP library that centralizes the management of notifications (e-mails, sms, push notifications, etc.).

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

[](#requirements)

- `php` &gt;= 7.2
- `symfony/event-dispatcher` &gt;= 4.3
- `symfony/options-resolver` &gt;= 4.3

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

[](#installation)

The suggested installation method is via [composer](https://getcomposer.org/):

```
$ composer require fazland/notifire
```

Using Notifire
--------------

[](#using-notifire)

Every notification in Notifire triggers an Event (the `NotifyEvent`) which will be handled by an instance of `NotifyEventSubscriber` (later named by `handlers`). Those notifications must implement `NotificationInterface` and registered with `Notifire::addNotification()` in order to be read by Notifire.

Notifire provides 2 standard implementations (`Email` and `Sms`) and theirs `handlers` (the defaults are `SwiftMailerHandler` and `TwilioHandler`).

Notifire is really simple to use:

### Initialization

[](#initialization)

First of all Notifire has to be initialized. Two ways:

1. run in order to autoconfigure the e-mail with [SwiftMailer](https://github.com/swiftmailer/swiftmailer) as its `Handler`

```
Notifire::create();
```

2. custom configuration with `NotifireBuilder` by registering the notifications and the desired instance of `EventDispatcherInterface`

```
require_once('vendor/autoload.php');

$dispatcher = new EventDispatcher();

$builder = NotifireBuilder::create()
    ->setDispatcher($dispatcher)
;

$builder->addHandler(new SwiftMailerHandler($mailer, 'mailer_one'));
$builder->addNotification('email', Email::class);

$builder->initialize();
```

Now you're ready! To create an `Email` just use `Notifire::email()`, fill the fields like `from`, `to`, `parts` etc. and then use `Email::send()`:

```
// Use 'mailer_one' handler to send this message
$email = Notifire::email('mailer_one');

$email
    ->addFrom('test@fazland.com')
    ->addTo('info@example.org')
    ->setSubject('Only wonderful E-mails with Notifire!')
    ->addPart(Part::create($body, 'text/html'))
    ->send()
;
```

Contributing
------------

[](#contributing)

Contributions are welcome. Feel free to open a PR or file an issue here on GitHub!

License
-------

[](#license)

Notifire is licensed under the MIT License - see the [LICENSE](https://github.com/fazland/Notifire/blob/master/LICENSE) file for details

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% 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 ~192 days

Recently: every ~230 days

Total

6

Last Release

2632d ago

Major Versions

0.3.1 → 1.0.02019-04-16

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

1.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/73dd7f3bebd03ec946b6b12359141ea461b770c3671acac4e8004e3c2d78e78f?d=identicon)[alekitto](/maintainers/alekitto)

![](https://www.gravatar.com/avatar/2ec273e505eac80af12ad5fb33f5111af2b9805f41cb50c598f6d36426331d8c?d=identicon)[massimilianobraglia](/maintainers/massimilianobraglia)

![](https://avatars.githubusercontent.com/u/11536977?v=4)[Giovanni Albero](/maintainers/giovannialbero1992)[@giovannialbero1992](https://github.com/giovannialbero1992)

![](https://avatars.githubusercontent.com/u/553026?v=4)[Federico Panini](/maintainers/p365labs)[@p365labs](https://github.com/p365labs)

---

Top Contributors

[![massimilianobraglia](https://avatars.githubusercontent.com/u/17158942?v=4)](https://github.com/massimilianobraglia "massimilianobraglia (7 commits)")[![alekitto](https://avatars.githubusercontent.com/u/1257206?v=4)](https://github.com/alekitto "alekitto (1 commits)")[![giovannialbero1992](https://avatars.githubusercontent.com/u/11536977?v=4)](https://github.com/giovannialbero1992 "giovannialbero1992 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fazland-notifire/health.svg)

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

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k853.6M8.3k](/packages/symfony-http-kernel)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[symfony/mailer

Helps sending emails

1.6k394.6M1.3k](/packages/symfony-mailer)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M715](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M526](/packages/shopware-core)

PHPackages © 2026

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