PHPackages                             ineph/notification-bundle - 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. ineph/notification-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

ineph/notification-bundle
=========================

A simple Symfony 5 bundle for user notifications

048PHP

Since May 11Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

ineph/notification-bundle
=========================

[](#inephnotification-bundle)

An easy yet powerful notification bundle for Symfony

[![Latest Stable Version](https://camo.githubusercontent.com/318ed652b62c4f02d6e7d8ed8e7d15d75e748a9c59b4de70908babf28a4a8cf5/68747470733a2f2f706f7365722e707567782e6f72672f6d67696c65742f6e6f74696669636174696f6e2d62756e646c652f762f737461626c65)](https://packagist.org/packages/ineph/notification-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/3bd0a7ea74953dc0a7b827fc83982a904ef541e6283b905ca0436ac0e1a3ba9f/68747470733a2f2f706f7365722e707567782e6f72672f6d67696c65742f6e6f74696669636174696f6e2d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/ineph/notification-bundle)[![Total Downloads](https://camo.githubusercontent.com/789c6793ff8649cd1afa4e552564b101e647a203a607b46c6f99678014d87eba/68747470733a2f2f706f7365722e707567782e6f72672f6d67696c65742f6e6f74696669636174696f6e2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/ineph/notification-bundle)[![License](https://camo.githubusercontent.com/debf9420cd7607f7191332b4065c70e9aa8d2b32bca12dca70bd07ab6a932d4e/68747470733a2f2f706f7365722e707567782e6f72672f6d67696c65742f6e6f74696669636174696f6e2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/ineph/notification-bundle)

[![mgilet/notificationBundle](https://camo.githubusercontent.com/5a2e5209fc479c47e893b284dbf0d74b32f54c23057ac26278a720b14078ac60/687474703a2f2f692e696d6775722e636f6d2f30374f634636632e676966)](https://camo.githubusercontent.com/5a2e5209fc479c47e893b284dbf0d74b32f54c23057ac26278a720b14078ac60/687474703a2f2f692e696d6775722e636f6d2f30374f634636632e676966)

Create and manage notifications in an efficient way.

Symfony support :

- 5.x

NOW SUPPORTS SYMFONY FLEX !
---------------------------

[](#now-supports-symfony-flex-)

Version 3.0 out now.

Features
--------

[](#features)

- Easy setup
- Easy to use
- Powerful notification management
- Simple Twig render methods
- Fully customizable
- Multiple notifiables entities
- No bloated dependencies (little requirements)

Notice: Only Doctrine ORM is supported for now.

Upgrade from 3.x
----------------

[](#upgrade-from-3x)

### Custom Notification entity usage

[](#custom-notification-entity-usage)

If you use a custom Notification entitiy you must remove the `resolve_target_entities` directive from the doctrine configuration and add a configuration file.

### Example

[](#example)

After adding the customized notification class as in #39 just add a configuration file

`config/packages/ineph_notification.yaml`

```
ineph_notification:
  notification_class: App\Entity\MyCustomNotification
```

Installation &amp; usage
------------------------

[](#installation--usage)

This bundle is available on [packagist](https://packagist.org/packages/ineph/notification-bundle).

Add notification-bundle to your project :

```
$ composer require ineph/notification-bundle
```

**See [documentation](Resources/doc/index.rst) for next steps**

### Basic usage

[](#basic-usage)

```
class MyController extends Controller
{

    ...

    public function sendNotification(Request $request)
    {
      $manager = $this->get('mgilet.notification');
      $notif = $manager->createNotification('Hello world!');
      $notif->setMessage('This a notification.');
      $notif->setLink('https://symfony.com/');
      // or the one-line method :
      // $manager->createNotification('Notification subject', 'Some random text', 'https://google.fr/');

      // you can add a notification to a list of entities
      // the third parameter `$flush` allows you to directly flush the entities
      $manager->addNotification(array($this->getUser()), $notif, true);

      ...
    }
```

Translations
------------

[](#translations)

For now this bundle is only translated to de, en, es, fa, fr, it, nl, pt\_BR, pl.

Help me improve this by submitting your translations.

Community
---------

[](#community)

You can help make this bundle better by contributing (every pull request will be considered) or submitting an issue.

Enjoy and share if you like it.

Licence
-------

[](#licence)

MIT

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![inephnicky53](https://avatars.githubusercontent.com/u/13071536?v=4)](https://github.com/inephnicky53 "inephnicky53 (2 commits)")

### Embed Badge

![Health badge](/badges/ineph-notification-bundle/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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