PHPackages                             pxlrbt/wordpress-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pxlrbt/wordpress-notifier

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

pxlrbt/wordpress-notifier
=========================

WordPress package for use in plugins or themes to handle WordPress admin notices.

1.2.0(5y ago)41081GPL-3.0-or-laterPHP

Since Apr 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pxlrbt/wordpress-notifier)[ Packagist](https://packagist.org/packages/pxlrbt/wordpress-notifier)[ RSS](/packages/pxlrbt-wordpress-notifier/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

WordPress Notifier - WP Notice Helper
=====================================

[](#wordpress-notifier---wp-notice-helper)

WordPress Notifier is an object oriented helper library for handling WordPress admin notices inside a plugin or theme. It supports persistent notices and dismissible notices out of the box and is extendable.

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

[](#installation)

### Composer

[](#composer)

```
composer require pxlrbt/wordpress-notifier
```

### Manually

[](#manually)

Download and extract the library inside your project. Then include the `bootstrap.php` file.

```
require_once '[PATH_TO_FILE]/bootstrap.php';
```

Usage
-----

[](#usage)

### Create a notifier instance

[](#create-a-notifier-instance)

Create a new notifier instance globally. This **must** be called on every page load since it automatically registers hooks for printing the admin notices. Afterwards you can create simple noticies by using notifiers static methods.

```
Notifier::getInstance();
#or
$notifier = new Notifier()
```

### Create a notification

[](#create-a-notification)

After creating a Notifier instance you can dispatch new notifications via it. Either use notifiers static functions for simple notifications or create a notification object yourself and configure it with it's chainable methods then dispatch it via the Notifier.

```
// Static functions refer to last Notifier created
Notifier::info('An update is available.');
Notifier::error('Oops, something went wrong!');

// Advanced usage
$notifier->dispatch(
    Notification::create('Plugin configuration is missing!')
        ->id('plugin_xy.config.failed')
        ->type('error')
        ->title('ERROR')
        ->dismissible(true)
        ->persistent(true);
)
```

### Check whether notification exists

[](#check-whether-notification-exists)

Use the notification ID to check whether the notification was already dispatched.

```
$id = 'plugin_xy.config.failed';
$notifier->containsNotification($id);
```

### Remove a notification

[](#remove-a-notification)

Notifications can be dismissed manually by the user. If you need to remove persistent notification programatically set an ID and use it to remove the notification again.

```
$id = 'plugin_xy.config.failed';
$notifier->removeNotification($id);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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 ~108 days

Total

3

Last Release

2002d ago

### Community

Maintainers

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

---

Top Contributors

[![pxlrbt](https://avatars.githubusercontent.com/u/22632550?v=4)](https://github.com/pxlrbt "pxlrbt (7 commits)")

---

Tags

admin-noticeadmin-notificationsnoticewordpresswordpress-librarywordpresslibrarywpnoticesadmin notices

### Embed Badge

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

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

PHPackages © 2026

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