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.2.3(1mo ago)291.8k↓26.7%3[4 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 2d ago

READMEChangelog (8)Dependencies (27)Versions (44)Used By (0)

BSF Admin Notices
=================

[](#bsf-admin-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-bsf-admin-notices.php` in your project.
3. Register your notices on action `admin_init` by calling method `BSF_Admin_Notices::add_notice()`

**Default Parameters**

```
array(
    'id'                         => '',      // Required, Notice ID. Id can be like: `bsf-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 BSF_Admin_Notices.
)
```

**Example Usage**

```
add_action(
	'admin_init',
	function() {
		BSF_Admin_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

53

—

FairBetter than 96% of packages

Maintenance71

Regular maintenance activity

Popularity35

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~14 days

Total

14

Last Release

44d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2931091?v=4)[Nikhil](/maintainers/nikschavan)[@Nikschavan](https://github.com/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)")[![rajmohanreddy774](https://avatars.githubusercontent.com/u/68589327?v=4)](https://github.com/rajmohanreddy774 "rajmohanreddy774 (30 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)")[![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

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

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

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

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

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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