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

AbandonedArchivedLibrary

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

Optimizations for a local WordPress theme development environment

1.1.0(7y ago)0367↓100%MITPHPPHP &gt;=7.0.0

Since Feb 13Pushed 7y ago3 watchersCompare

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

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

Development Environment
=======================

[](#development-environment)

Optimizations for a local WordPress theme development environment.

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

[](#installation)

You can install the package via Composer:

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

Usage
-----

[](#usage)

By default, the development environment:

- Disables heartbeat.
- Adds a custom 🚀 favicon for development enviroments.

To activate the feature, use the following code:

**functions.php**

```
if ( is_dev() ) {
    $wpdev = new Theme\Environment\Development\WordPress();
    $wpdev->init();
}
```

### Development Favicon

[](#development-favicon)

For the development favicon feature to work well, you’ll need to render your favicons through a `render_theme_favicon()` function. The development favicon feature will unhook your `render_theme_favicon` function from `wp_head` and add its own code.

**functions.php**

```
/**
 * Add the theme favicon into theme head
 */
add_action( 'wp_head', 'render_theme_favicon' );

/**
 * Render favicons.
 *
 * This needs to be a separate function so that it can be unhooked.
 */
function render_theme_favicon() {
    Timber\Timber::render( 'favicons.twig', Timber\Timber::get_context() );
}
```

### Redirect emails

[](#redirect-emails)

Redirects all emails sent through wp\_mail to a certain email address.

```
if ( is_dev() ) {
    $wpdev = new Theme\Environment\Development\WordPress();
    $wpdev->redirect_emails( 'info@example.org' );
}
```

### WooCommerce

[](#woocommerce)

#### set\_email\_recipient

[](#set_email_recipient)

Filters the recipient email for WooCommerce emails.

**functions**

```
if ( is_dev() ) {
    $woodev = Theme\Environment\Development\WooCommerce();
    $woodev->set_email_recipient( 'info@example.org' );
}
```

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

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~99 days

Total

3

Last Release

2810d 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 (4 commits)")

### Embed Badge

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

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

PHPackages © 2026

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