PHPackages                             piotrpress/wordpress-notice - 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. [Admin Panels](/categories/admin)
4. /
5. piotrpress/wordpress-notice

ActiveLibrary[Admin Panels](/categories/admin)

piotrpress/wordpress-notice
===========================

This library simplifies the displaying of Notices in the WordPress dashboard.

v1.1.0(1y ago)0681GPL-3.0PHPPHP &gt;=7.4

Since Aug 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PiotrPress/wordpress-notice)[ Packagist](https://packagist.org/packages/piotrpress/wordpress-notice)[ Docs](https://github.com/PiotrPress/wordpress-notice)[ RSS](/packages/piotrpress-wordpress-notice/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (1)

WordPress Notice
================

[](#wordpress-notice)

This library simplifies the displaying of Notices in the WordPress dashboard.

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

[](#installation)

```
$ composer require piotrpress/wordpress-notice
```

Example
-------

[](#example)

```
require __DIR__ . '/vendor/autoload.php';

namespace PiotrPress\WordPress;

// Example #1
echo new Notice( 'This is an example notice message', Notice::ERROR );

// Example #2
Hooks::add( new Notice( 'This is an example notice message', Notice::ERROR ) );
```

Arguments
---------

[](#arguments)

- `string` **$message** - The notice message.
- `string` **$type** - The notice type. Possible values are `Notice::INFO`, `Notice::SUCCESS`, `Notice::WARNING`, `Notice::ERROR`. Default is `null`.
- `bool` **$dismissible** - Whether the notice is dismissible. Possible values are `true`, `false`. Default is `false`.
- `bool` **$alt** - The alternative notice display style (with filled-in background). Possible values are `true`, `false`. Default is `false`.

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

[](#requirements)

PHP &gt;= `7.4` version.

License
-------

[](#license)

[GPL3.0](license.txt)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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

Total

2

Last Release

655d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10326736?v=4)[Piotr Niewiadomski](/maintainers/PiotrPress)[@PiotrPress](https://github.com/PiotrPress)

---

Top Contributors

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

---

Tags

wordpresswpdashboardnoticewp-adminnotoces

### Embed Badge

![Health badge](/badges/piotrpress-wordpress-notice/health.svg)

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

PHPackages © 2026

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