PHPackages                             sjmb/module-environment-info - 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. sjmb/module-environment-info

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

sjmb/module-environment-info
============================

Displays a configurable visual environment indicator on admin and frontend pages for Magento 2

1.0.0(2mo ago)03proprietaryPHPPHP ~8.3

Since Mar 1Pushed 2mo agoCompare

[ Source](https://github.com/sjmb/environment-info)[ Packagist](https://packagist.org/packages/sjmb/module-environment-info)[ RSS](/packages/sjmb-module-environment-info/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Sjmb\_EnvironmentInfo
=====================

[](#sjmb_environmentinfo)

Displays a configurable visual environment indicator on every admin page to identify the current hostname.

Overview
--------

[](#overview)

`Sjmb_EnvironmentInfo` injects a small UI element into the Magento 2 admin panel so developers and administrators can immediately identify which environment (staging, production, local) they are working in. The indicator is driven entirely by system configuration: it can be globally disabled, always enabled, or restricted to a list of specific hostnames. Three visual styles are available — a top bar, a corner badge, and a dismissible alert — each rendered via a dedicated template.

Requirements
------------

[](#requirements)

- Magento 2.4.x or higher
- PHP 8.3 or higher
- No external module dependencies declared

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

[](#installation)

### Composer installation

[](#composer-installation)

Run command to install module:

```
composer require --dev sjmb/module-environment-info
```

### Manual installation

[](#manual-installation)

Download module and place in directory `/app/code/Sjmb/EnvironmentInfo`

Enable the module
-----------------

[](#enable-the-module)

```
php bin/magento module:enable Sjmb_EnvironmentInfo
php bin/magento setup:upgrade
php bin/magento cache:flush
```

Configuration
-------------

[](#configuration)

### CLI

[](#cli)

To enable display info can use CLI command:

```
php bin/magento config:set sjmb_env_info/general/mode 1
```

To save config to `app/etc/env.php` can add flag `--lock-env`:

```
php bin/magento config:set sjmb_env_info/general/mode 1 --lock-env
```

### env.php

[](#envphp)

To enable display by `app/etc/env.php` can add bellow code:

```
...
'system' => [
    'default' => [
        'sjmb_env_info' => [
            'general' => [
                'mode' => '1'
            ]
        ]
    ]
]
...
```

### Admin panel

[](#admin-panel)

Navigate to **Stores &gt; Configuration &gt; SJMB &gt; Environment Info &gt; General Settings**.

Config pathUI labelTypeDefaultDescription`sjmb_env_info/general/mode`Display Modeselect`0` (Disabled)Controls when the indicator is shown`sjmb_env_info/general/display_type`Display Typeselect`topbar`Visual style of the indicator; hidden when mode is Disabled`sjmb_env_info/general/allowed_domains`Allowed Domainsdynamic rows (JSON)—List of hostnames; visible only when Display Mode is Selected Domains**Display Mode values**

ValueLabelBehaviour`0`DisabledIndicator is never rendered`1`EnabledIndicator is rendered on every admin page`2`Selected DomainsIndicator is rendered only when `HTTP_HOST` matches an entry in Allowed Domains**Display Type values**

ValueTemplateVisual description`topbar``topbar.phtml`Fixed full-width orange bar at the top of the page; JS adjusts `body` top margin to prevent overlap`corner``corner.phtml`Small purple badge fixed in the bottom-right corner; `pointer-events: none``alert``alert.phtml`Dismissible orange bar fixed below the top navigation (`top: 60px`); includes a close buttonFeatures
--------

[](#features)

- Admin system configuration section under **Stores &gt; Configuration &gt; SJMB &gt; Environment Info**.
- Three display modes: Disabled, Enabled, and Selected Domains.
- Three visual indicator styles: topbar, corner badge, dismissible alert.
- Selected Domains mode performs an exact `HTTP_HOST` match against a JSON-serialized list of domain rows configured via a dynamic-rows UI field.

Usage
-----

[](#usage)

**Enable with topbar on all pages**

1. Go to Stores &gt; Configuration &gt; SJMB &gt; Environment Info.
2. Set Display Mode to **Enabled**.
3. Set Display Type to **Topbar**.
4. Save configuration and flush cache.

**Restrict to specific environments by hostname**

1. Set Display Mode to **Selected Domains**.
2. In the Allowed Domains grid, add one row per hostname (e.g. `staging.example.com`).
3. Set Display Type to the desired style.
4. Save configuration and flush cache.

The indicator will appear only when the admin is accessed from a matching hostname.

Info
====

[](#info)

- GIT repository:

> Copyright (c) 2026 [SJMB](https://sjmb.pl) · Code in 🐻‍❄️ in 🇵🇱

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance85

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

78d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83f505e93d114ee8601b1f79d0c2fbd08ec51adf00355e1ed0ee69d2ba052d54?d=identicon)[sjmb](/maintainers/sjmb)

---

Top Contributors

[![sjmb](https://avatars.githubusercontent.com/u/21079254?v=4)](https://github.com/sjmb "sjmb (1 commits)")

### Embed Badge

![Health badge](/badges/sjmb-module-environment-info/health.svg)

```
[![Health](https://phpackages.com/badges/sjmb-module-environment-info/health.svg)](https://phpackages.com/packages/sjmb-module-environment-info)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[baldwin/magento2-module-url-data-integrity-checker

Magento 2 module which can find potential url related problems in your catalog data

281773.3k](/packages/baldwin-magento2-module-url-data-integrity-checker)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[fredden/magento2-module-javascript-error-reporting

A Magento 2 module which captures JavaScript errors for later review by website administrators

3138.1k](/packages/fredden-magento2-module-javascript-error-reporting)

PHPackages © 2026

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