PHPackages                             brainstormforce/astra-notices - 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. brainstormforce/astra-notices

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

brainstormforce/astra-notices
=============================

Easily create admin notices

1.1.16(1mo ago)287.0k—7.8%2[5 issues](https://github.com/brainstormforce/astra-notices/issues)[10 PRs](https://github.com/brainstormforce/astra-notices/pulls)GPL-3.0-or-laterPHPCI passing

Since Feb 26Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/brainstormforce/astra-notices)[ Packagist](https://packagist.org/packages/brainstormforce/astra-notices)[ RSS](/packages/brainstormforce-astra-notices/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (18)Versions (32)Used By (0)

Astra Notices
=============

[](#astra-notices)

Easily Create Admin Notices.

### How to use this library

[](#how-to-use-this-library)

1. Download the latest release from the tag as shown in the screenshot. [![Download Package](https://user-images.githubusercontent.com/2931091/124632235-c91aa680-dea1-11eb-9213-dbb9c4615d60.jpg)](https://user-images.githubusercontent.com/2931091/124632235-c91aa680-dea1-11eb-9213-dbb9c4615d60.jpg)
2. Require the file `class-astra-notices.php` in your project.
3. Register your notices on action `admin_init` by calling method `Astra_Notices::add_notice()`

**Default Parameters**

```
array(
    'id'                         => '',      // Required, Notice ID. Id can be like: `astra-notices-id-`.
    'type'                       => 'info',  // Optional, Notice type. Default `info`. Expected [info, warning, notice, error].
    'message'                    => '',      // Optional, Message.
    'show_if'                    => true,    // Optional, Show notice on custom condition. E.g. 'show_if' => if( is_admin() ) ? true, false, .
    'repeat-notice-after'        => '',      // Optional, Dismiss-able notice time. It'll auto show after given time.
    'display-notice-after'       => false,      // Optional, Dismiss-able notice time. It'll auto show after given time.
    'class'                      => '',      // Optional, Additional notice wrapper class.
    'priority'                   => 10,      // Priority of the notice.
    'display-with-other-notices' => true,    // Should the notice be displayed if other notices  are being displayed from Astra_Notices.
)
```

**Example Usage**

```
add_action(
	'admin_init',
	function() {
		Astra_Notices::add_notice(
			array(
				'id'                         => 'your-notice-id',
				'type'                       => '',
				'message'                    => sprintf(
					'

								%2$s

							%3$s

								%5$s

								%7$s

								%8$s

						',
					$image_path,
					__( 'Hello! Seems like you have used Header Footer Elementor to build this website — Thanks a ton!', 'header-footer-elementor' ),
					__( 'Could you please do us a BIG favor and give it a 5-star rating on WordPress? This would boost our motivation and help other users make a comfortable decision while choosing the Header Footer Elementor.', 'header-footer-elementor' ),
					'https://wordpress.org/support/plugin/header-footer-elementor/reviews/?filter=5#new-post',
					__( 'Ok, you deserve it', 'header-footer-elementor' ),
					MONTH_IN_SECONDS,
					__( 'Nope, maybe later', 'header-footer-elementor' ),
					__( 'I already did', 'header-footer-elementor' )
				),
				'repeat-notice-after'        => MONTH_IN_SECONDS,
				'display-notice-after'       => 1296000, // Display notice after 15 days.
				'priority'                   => 18,
				'display-with-other-notices' => false,
			)
		);
	}
);
```

Also check the example of [how this is used](https://github.com/brainstormforce/astra/blob/b9038d6ea02ae04b27db23b789b66b60907b4c16/inc/core/class-astra-admin-settings.php#L148-L187) in the Astra Theme.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance69

Regular maintenance activity

Popularity35

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~287 days

Recently: every ~94 days

Total

10

Last Release

56d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13195727aa0086d6d3f6ab499b901fd70be4eefe2cc9d5b38eca47b198841391?d=identicon)[nikschavan](/maintainers/nikschavan)

---

Top Contributors

[![Nikschavan](https://avatars.githubusercontent.com/u/2931091?v=4)](https://github.com/Nikschavan "Nikschavan (92 commits)")[![patilvikasj](https://avatars.githubusercontent.com/u/10000232?v=4)](https://github.com/patilvikasj "patilvikasj (33 commits)")[![Bhikule19](https://avatars.githubusercontent.com/u/108789846?v=4)](https://github.com/Bhikule19 "Bhikule19 (10 commits)")[![imnavanath](https://avatars.githubusercontent.com/u/36153619?v=4)](https://github.com/imnavanath "imnavanath (7 commits)")[![premanshup](https://avatars.githubusercontent.com/u/36841355?v=4)](https://github.com/premanshup "premanshup (5 commits)")[![sushmak02](https://avatars.githubusercontent.com/u/30038757?v=4)](https://github.com/sushmak02 "sushmak02 (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![rajmohanreddy774](https://avatars.githubusercontent.com/u/68589327?v=4)](https://github.com/rajmohanreddy774 "rajmohanreddy774 (3 commits)")[![vrundakansara](https://avatars.githubusercontent.com/u/11641718?v=4)](https://github.com/vrundakansara "vrundakansara (1 commits)")[![pratikchaskar](https://avatars.githubusercontent.com/u/81136990?v=4)](https://github.com/pratikchaskar "pratikchaskar (1 commits)")[![rohitp-bsf](https://avatars.githubusercontent.com/u/49940680?v=4)](https://github.com/rohitp-bsf "rohitp-bsf (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brainstormforce-astra-notices/health.svg)

```
[![Health](https://phpackages.com/badges/brainstormforce-astra-notices/health.svg)](https://phpackages.com/packages/brainstormforce-astra-notices)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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