PHPackages                             drunomics/phapp\_env\_mode - 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. [CLI &amp; Console](/categories/cli)
4. /
5. drunomics/phapp\_env\_mode

ActiveDrupal-drush[CLI &amp; Console](/categories/cli)

drunomics/phapp\_env\_mode
==========================

Provides drush commands for applying the phapp environment mode.

1.2.1(4y ago)030.1k↓50%[1 issues](https://github.com/drunomics/drush-phapp-env-mode/issues)GPL-2.0-or-laterPHP

Since Feb 18Pushed 3y agoCompare

[ Source](https://github.com/drunomics/drush-phapp-env-mode)[ Packagist](https://packagist.org/packages/drunomics/phapp_env_mode)[ RSS](/packages/drunomics-phapp-env-mode/feed)WikiDiscussions 1.x Synced 1mo ago

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

Phapp environment switch
========================

[](#phapp-environment-switch)

Provides config and drush commands for applying the Phapp environment mode variable.

Prerequesites
-------------

[](#prerequesites)

- A [phapp-cli](https://github.com/drunomics/phapp-cli) enabled project.
- A working dotenv setup that loads PHAPP environment variables, as existing in [drunomics/drupal-project](https://github.com/drunomics/drupal-project)

Setup
-----

[](#setup)

In drunomics/drupal-project, all setup steps are taken care already. For others:

1. Add the following to settings.php:

    ```
    // Set active split configuration.
    $split = getenv('PHAPP_ENV_MODE');
    $config['config_split.config_split.' . $split]['status'] = TRUE;

    ```
2. Export some config split configuration that will set further config per environment in your config sync directory, name the split like the environment mode, "development", or "production".

    You may use drunomics/dsk-config-split for creating suiting config.
3. Run `phapp:apply-env-mode` during deployments right before `drush cim`.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~333 days

Total

5

Last Release

1312d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/132232?v=4)[Wolfgang Ziegler](/maintainers/fago)[@fago](https://github.com/fago)

---

Top Contributors

[![fago](https://avatars.githubusercontent.com/u/132232?v=4)](https://github.com/fago "fago (8 commits)")[![golubovic-m](https://avatars.githubusercontent.com/u/86045872?v=4)](https://github.com/golubovic-m "golubovic-m (1 commits)")[![petarbasic](https://avatars.githubusercontent.com/u/52317999?v=4)](https://github.com/petarbasic "petarbasic (1 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/drunomics-phapp-env-mode/health.svg)

```
[![Health](https://phpackages.com/badges/drunomics-phapp-env-mode/health.svg)](https://phpackages.com/packages/drunomics-phapp-env-mode)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[grasmash/yaml-cli

A command line tool for reading and manipulating yaml files.

2523.6M10](/packages/grasmash-yaml-cli)

PHPackages © 2026

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