PHPackages                             calderawp/dismissible-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. calderawp/dismissible-notice

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

calderawp/dismissible-notice
============================

Creates a dismissible--via AJAX--admin nag.

0.3.0(10y ago)151.3k1[1 issues](https://github.com/CalderaWP/dismissible_notice/issues)[1 PRs](https://github.com/CalderaWP/dismissible_notice/pulls)GPL v2+PHP

Since Jun 8Pushed 10y ago4 watchersCompare

[ Source](https://github.com/CalderaWP/dismissible_notice)[ Packagist](https://packagist.org/packages/calderawp/dismissible-notice)[ RSS](/packages/calderawp-dismissible-notice/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

A simple way to add an admin nag, that can be dismissed via AJAX.

### Example

[](#example)

Show a warning if current version of PHP is less than 5.3.

```
    add_action( 'plugins_loaded', 'caeq_bootstrap' );
    function caeq_bootstrap(){

    	if (  ! version_compare( PHP_VERSION, '5.3.0', '>=' ) ) {
    		if ( is_admin() || defined( 'DOING_AJAX' ) && DOING_AJAX ) {
    			include_once CAEQ_PATH . 'vendor/calderawp/dismissible-notice/src/callback_hook.php';
    		}

    		if ( is_admin() ) {
    			//BIG nope nope nope!

    			$message = sprintf( __( 'Caldera Easy Queries requires PHP version %1s or later. We strongly recommend PHP 5.4 or later for security and performance reasons. Current version is %2s.', '5.3.0', 'caldera-text-domain' ), PHP_VERSION );
    			echo caldera_warnings_dismissible_notice( $message, true, 'activate_plugins' );
    		}

    	}else{
    		//bootstrap plugin
    		require_once( CAEQ_PATH . 'bootstrap.php' );

    	}

}
```

### Backwards Compat and such

[](#backwards-compat-and-such)

This library was written with PHP 5.2 backwards-compat in mind. Hence the prefixed, instead of namespaced class name. You will also need to manually include the class.

### License &amp; Copyright

[](#license--copyright)

Copyright 2015 [Josh Pollock](http://JoshPress.net)

Licensed under the terms of the [GNU General Public License version 2](http://www.gnu.org/licenses/gpl-2.0.html) or later. Please share with your neighbor.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.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 ~76 days

Total

2

Last Release

3914d ago

### Community

Maintainers

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

---

Top Contributors

[![Shelob9](https://avatars.githubusercontent.com/u/1994311?v=4)](https://github.com/Shelob9 "Shelob9 (16 commits)")[![grappler](https://avatars.githubusercontent.com/u/1785641?v=4)](https://github.com/grappler "grappler (6 commits)")[![DavidCramer](https://avatars.githubusercontent.com/u/307466?v=4)](https://github.com/DavidCramer "DavidCramer (4 commits)")

### Embed Badge

![Health badge](/badges/calderawp-dismissible-notice/health.svg)

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

PHPackages © 2026

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