PHPackages                             devhub/top-banner - 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. devhub/top-banner

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

devhub/top-banner
=================

Adds a Banner on top of every page to show campaigns, alerts etc.

1.0.1(3y ago)05OSL-3.0PHPPHP &gt;=7.1.0

Since Apr 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/TheDeveloperHub-devhub/TopBanner)[ Packagist](https://packagist.org/packages/devhub/top-banner)[ RSS](/packages/devhub-top-banner/feed)WikiDiscussions main Synced 1mo ago

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

TopBanner
=========

[](#topbanner)

### Features

[](#features)

- It displays an advertising section on the top of your web pages.
- This advertising section provides a clickable link to open and explore more about the new features or sales/discounts/offers.
- Once the user closes the top banner by clicking on the cross (X) button, then the top banner will not appear again on the same browser for users.
- Admin can create new top banners to display on webpages and he can set their duration for advertisement.
- Admin can change/create theme templates for top banners.

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

[](#installation)

1. Please run the following command

```
composer require devhub/top-banner
```

2. Update the composer if required

```
composer update
```

3. Enable module

```
php bin/magento module:enable DeveloperHub_Core
php bin/magento module:enable DeveloperHub_TopBanner
php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento cache:flush
```

4.If your website is running in product mode the you need to deploy static content and then clear the cache

```
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
```

\#####This extension is compatible with all the versions of Magento 2.3.\* and 2.4.\*. ###Tested on following instances: #####multiple instances i.e. 2.3.7-p3 and 2.4.5-p1

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76fd9ec933b932f2e66e76b41fe41d4397bb62f840dc1330d8f0b37b18304d4a?d=identicon)[TheDeveloperHub-devhub](/maintainers/TheDeveloperHub-devhub)

---

Top Contributors

[![theDeveloperHub-devhub](https://avatars.githubusercontent.com/u/130691789?v=4)](https://github.com/theDeveloperHub-devhub "theDeveloperHub-devhub (4 commits)")

### Embed Badge

![Health badge](/badges/devhub-top-banner/health.svg)

```
[![Health](https://phpackages.com/badges/devhub-top-banner/health.svg)](https://phpackages.com/packages/devhub-top-banner)
```

###  Alternatives

[afbora/kirby-minify-html

Enable minify HTML output for Kirby

3816.0k1](/packages/afbora-kirby-minify-html)[pwm/s-flow

A lightweight library for defining state machines

742.5k](/packages/pwm-s-flow)

PHPackages © 2026

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