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

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

mgilet/notification-bundle
==========================

A simple Symfony 3 bundle for user notifications

4.0(5y ago)111142.0k↓24.5%57[5 issues](https://github.com/maximilienGilet/notification-bundle/issues)[2 PRs](https://github.com/maximilienGilet/notification-bundle/pulls)MITPHP

Since Jul 14Pushed 3y ago9 watchersCompare

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

READMEChangelog (6)Dependencies (3)Versions (12)Used By (0)

mgilet/notification-bundle
==========================

[](#mgiletnotification-bundle)

An easy yet powerful notification bundle for Symfony

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

[![SensioLabsInsight](https://camo.githubusercontent.com/80ab5eb9b7fdbb2075e7390abda9d02e63bdf372da66202efd966a4d42751f40/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36393761626263632d346231352d343138612d613663392d6536363237383766656434382f6269672e706e67)](https://insight.sensiolabs.com/projects/697abbcc-4b15-418a-a6c9-e662787fed48)

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

Create and manage notifications in an efficient way.

Symfony support :

- 2.7.x (bundle version 2.x)
- 2.8.x (bundle version 2.x)
- 3.x
- 4.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/mgilet_notification.yaml`

```
mgilet_notification:
  notification_class: App\Entity\MyCustomNotification
```

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

[](#installation--usage)

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

Add notification-bundle to your project :

```
$ composer require mgilet/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

45

—

FairBetter than 93% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 70.5% 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 ~182 days

Recently: every ~231 days

Total

10

Last Release

1958d ago

Major Versions

1.0.0-alpha-1 → 2.02017-10-17

2.0.3 → 3.0.02018-06-28

3.2 → 4.02021-01-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e25bf48ec2ae80c487025bb3d80a3bd39328fb9e7f4ede37a4cb4e014f0c000?d=identicon)[maximilienGilet](/maintainers/maximilienGilet)

---

Top Contributors

[![maximilienGilet](https://avatars.githubusercontent.com/u/10434870?v=4)](https://github.com/maximilienGilet "maximilienGilet (117 commits)")[![LeandroLuccerini](https://avatars.githubusercontent.com/u/7492724?v=4)](https://github.com/LeandroLuccerini "LeandroLuccerini (21 commits)")[![mchahed99](https://avatars.githubusercontent.com/u/34678981?v=4)](https://github.com/mchahed99 "mchahed99 (5 commits)")[![thinkawitch](https://avatars.githubusercontent.com/u/189033?v=4)](https://github.com/thinkawitch "thinkawitch (5 commits)")[![KhanMaytok](https://avatars.githubusercontent.com/u/5711547?v=4)](https://github.com/KhanMaytok "KhanMaytok (3 commits)")[![emulienfou](https://avatars.githubusercontent.com/u/84061?v=4)](https://github.com/emulienfou "emulienfou (3 commits)")[![easternmayurt](https://avatars.githubusercontent.com/u/39591253?v=4)](https://github.com/easternmayurt "easternmayurt (2 commits)")[![Jeroenkeesom](https://avatars.githubusercontent.com/u/15309861?v=4)](https://github.com/Jeroenkeesom "Jeroenkeesom (1 commits)")[![4ssil](https://avatars.githubusercontent.com/u/2683599?v=4)](https://github.com/4ssil "4ssil (1 commits)")[![kklecho](https://avatars.githubusercontent.com/u/3323741?v=4)](https://github.com/kklecho "kklecho (1 commits)")[![Kreyu](https://avatars.githubusercontent.com/u/24738141?v=4)](https://github.com/Kreyu "Kreyu (1 commits)")[![IndyDevGuy](https://avatars.githubusercontent.com/u/9091277?v=4)](https://github.com/IndyDevGuy "IndyDevGuy (1 commits)")[![marcelglaeser](https://avatars.githubusercontent.com/u/6400771?v=4)](https://github.com/marcelglaeser "marcelglaeser (1 commits)")[![matthieumota](https://avatars.githubusercontent.com/u/2427947?v=4)](https://github.com/matthieumota "matthieumota (1 commits)")[![FeMaffezzolli](https://avatars.githubusercontent.com/u/26548010?v=4)](https://github.com/FeMaffezzolli "FeMaffezzolli (1 commits)")[![eeemarv](https://avatars.githubusercontent.com/u/3982071?v=4)](https://github.com/eeemarv "eeemarv (1 commits)")[![imphil](https://avatars.githubusercontent.com/u/1467123?v=4)](https://github.com/imphil "imphil (1 commits)")

---

Tags

bundlephpsymfonysymfony-bundlesymfony notification bundle simple

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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