PHPackages                             koko-ng/admin-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. koko-ng/admin-notice

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

koko-ng/admin-notice
====================

Simply set notices from various save\_post hooks

1.1.0(2y ago)072GPL-3.0-or-laterPHPPHP &gt;=8.1

Since Aug 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/koko-ng/admin-notice)[ Packagist](https://packagist.org/packages/koko-ng/admin-notice)[ RSS](/packages/koko-ng-admin-notice/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (0)

Simple Admin Notice
===================

[](#simple-admin-notice)

Simply add admin notices for all post saving hooks. You can either set the notice using `set_notice_status` or wrap your hook with `with_error_notice`, then all the errors will be catched and send displayed as a notice on the admin UI.

Features
--------

[](#features)

- Gutenberg notices
- Classic editor notices

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

[](#installation)

```
composer require koko-ng/admin-notice

```

Examples
--------

[](#examples)

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

add_action('acf/save_post', \Admin_Notice\with_error_notice( 'my_acf_save_post') );
function my_acf_save_post( $post_id ) {

  // You can use `\Admin_Notice\Exception` to set a notice level.
  throw new \Admin_Notice\Exception("Error message", 0, \Admin_Notice\NoticeLevels::Warning);
}
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

1047d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3518429?v=4)[koko-ng](/maintainers/koko-ng)[@koko-ng](https://github.com/koko-ng)

---

Top Contributors

[![koko-ng](https://avatars.githubusercontent.com/u/3518429?v=4)](https://github.com/koko-ng "koko-ng (4 commits)")

### Embed Badge

![Health badge](/badges/koko-ng-admin-notice/health.svg)

```
[![Health](https://phpackages.com/badges/koko-ng-admin-notice/health.svg)](https://phpackages.com/packages/koko-ng-admin-notice)
```

###  Alternatives

[airmanbzh/php-html-generator

PHP html generator

8376.0k5](/packages/airmanbzh-php-html-generator)

PHPackages © 2026

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