PHPackages                             mindkomm/theme-lib-environment - 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. mindkomm/theme-lib-environment

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

mindkomm/theme-lib-environment
==============================

Environment helper functions for WordPress themes

1.0.0(8y ago)04901MITPHPPHP &gt;=7.0.0

Since Feb 13Pushed 8y ago3 watchersCompare

[ Source](https://github.com/mindkomm/theme-lib-environment)[ Packagist](https://packagist.org/packages/mindkomm/theme-lib-environment)[ RSS](/packages/mindkomm-theme-lib-environment/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (1)

Environment
===========

[](#environment)

Environment helper functions for WordPress themes.

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

[](#installation)

You can install the package via Composer:

```
composer require mindkomm/theme-lib-environment
```

Functions
---------

[](#functions)

NameSummaryTypeReturns/Description[is\_dev](#is_dev)Checks if we are in a development environment.`bool`[is\_live](#is_live)Checks if we are in a live environment.`bool`[is\_stage](#is_stage)Checks if we are in a stating environment.`bool`[is\_visitor](#is_visitor)Checks whether user is a normal site visitor.`bool`### is\_live

[](#is_live)

Checks if we are in a live environment.

When no environment constant is set, the environment is considered a live environment.

**Returns:** `bool`

---

### is\_visitor

[](#is_visitor)

Checks whether user is a normal site visitor.

This is mostly used to include scripts related to analytics and data tracking. For that, we normally do not want to have admin calls and frontend calls made by logged-in users.

Use this in combination with other environment functions, e.g. is\_live().

**Returns:** `bool`

---

### is\_stage

[](#is_stage)

Checks if we are in a stating environment.

**Returns:** `bool`

---

### is\_dev

[](#is_dev)

Checks if we are in a development environment.

**Returns:** `bool`

---

Support
-------

[](#support)

This is a library that we use at MIND to develop WordPress themes. You’re free to use it, but currently, we don’t provide any support.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

3011d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2084481?v=4)[Lukas Gächter](/maintainers/gchtr)[@gchtr](https://github.com/gchtr)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mindkomm-theme-lib-environment/health.svg)

```
[![Health](https://phpackages.com/badges/mindkomm-theme-lib-environment/health.svg)](https://phpackages.com/packages/mindkomm-theme-lib-environment)
```

PHPackages © 2026

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