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

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

axn/laravel-notifier
====================

Alerts/notifications for Laravel

6.2.0(3mo ago)13.6k[1 issues](https://github.com/AXN-Informatique/laravel-notifier/issues)MITPHPPHP ^8.4

Since Oct 29Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/AXN-Informatique/laravel-notifier)[ Packagist](https://packagist.org/packages/axn/laravel-notifier)[ Docs](https://github.com/AXN-Informatique/laravel-notifier)[ RSS](/packages/axn-laravel-notifier/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (44)Used By (0)

Laravel Notifier
================

[](#laravel-notifier)

Package Laravel pour uniformiser et simplifier l'enregistrement et l'affichage des messages/alertes dans les interfaces web.

**Attention** : à ne pas confondre avec les « [Notifications](https://laravel.com/docs/notifications) » de Laravel. Ce package utilise les « [Session Flash Data](https://laravel.com/docs/session#flash-data) ».

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

[](#installation)

```
composer require axn/laravel-notifier
```

Le service provider est auto-découvert par Laravel.

Utilisation rapide
------------------

[](#utilisation-rapide)

### Déclarer des messages

[](#déclarer-des-messages)

```
// Messages flash (affichés après redirection)
notify()->success('Post '.e($post->title).' mis à jour.');

return back();

// Messages instantanés (affichés dans la requête courante)
notify()->nowInfo('Édition de '.e($post->title));

return view('post.edit');
```

Les quatre types disponibles : `info`, `success`, `warning`, `error`.

### Afficher les messages

[](#afficher-les-messages)

```

```

### Sécurité XSS

[](#sécurité-xss)

Les variables `$message` et `$title` sont rendues en **HTML brut** dans les templates. **Toujours échapper** les données utilisateur avec `e()` :

```
// ✅ Correct
notify()->success('Post '.e($post->title).' mis à jour.');

// ❌ Faille XSS
notify()->success('Post '.$post->title.' mis à jour.');
```

Documentation
-------------

[](#documentation)

La documentation complète est disponible dans le dossier [`docs/`](docs/_index.md) :

- [Installation et configuration](docs/installation.md)
- [Déclaration des messages](docs/utilisation.md) — flash, instantanés, titres, délais, stacks, conditionnels
- [Affichage des messages](docs/affichage.md) — composant Blade, attributs, tri, groupement
- [Templates de vues](docs/templates.md) — Bootstrap 4/5, SweetAlert2, PNotify
- [Personnalisation](docs/personnalisation.md) — créer son propre template

Mises à jour
------------

[](#mises-à-jour)

Consultez le fichier [`UPGRADE.md`](UPGRADE.md) pour les instructions de mise à jour.

Licence
-------

[](#licence)

MIT

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance62

Regular maintenance activity

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 81.6% 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 ~93 days

Total

42

Last Release

93d ago

Major Versions

2.9.1 → 3.1.02022-02-11

3.2.1 → 4.0.02022-08-04

4.x-dev → 5.0.02024-04-29

5.1.0 → 6.0.02025-03-14

5.2.0 → 6.1.02025-09-02

PHP version history (3 changes)4.0.0PHP ^8.0

5.0.0PHP ^8.2

6.0.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1314974?v=4)[Axel Neumann](/maintainers/axn)[@axn](https://github.com/axn)

---

Top Contributors

[![forxer](https://avatars.githubusercontent.com/u/407917?v=4)](https://github.com/forxer "forxer (80 commits)")[![lgtaxn](https://avatars.githubusercontent.com/u/23211553?v=4)](https://github.com/lgtaxn "lgtaxn (17 commits)")[![crenan291](https://avatars.githubusercontent.com/u/93982998?v=4)](https://github.com/crenan291 "crenan291 (1 commits)")

---

Tags

laravellaravel-packagepackage

###  Code Quality

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-failed-job-monitor

Get notified when a queued job fails

1.1k2.8M4](/packages/spatie-laravel-failed-job-monitor)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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