PHPackages                             kukharenko/env-manager - 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. kukharenko/env-manager

ActiveLibrary

kukharenko/env-manager
======================

none

v1.0.5(3mo ago)112proprietaryPHPPHP ^8.4

Since Jun 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Kuharenko/env-manager)[ Packagist](https://packagist.org/packages/kukharenko/env-manager)[ RSS](/packages/kukharenko-env-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Env Replacer
============

[](#env-replacer)

Overview
--------

[](#overview)

Env Replacer is a powerful tool for managing environment files across multiple projects. It simplifies the process of switching between different environment configurations, ensuring consistency and reducing the risk of errors.

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

[](#installation)

To install Env Replacer globally using Composer, run the following command:

```
composer global require kukharenko/env-manager
```

Follow after install instructions:

```
cd $(composer global show -P | grep "kukharenko/env-manager" | awk '{print $2}') && composer install
```

### Verify Installation Path

[](#verify-installation-path)

Ensure that `vendor/bin` is added to your `PATH` environment variable. You can check this by running:

```
echo $PATH
```

If `vendor/bin` is not included, you need to add it manually:

Edit your `~/.zshrc` and `~/.bash_profile` files:

```
vim ~/.zshrc
vim ~/.bash_profile
```

Add the following line:

```
export PATH="$PATH:/Users/yourusername/.composer/vendor/bin"
```

### Apply the Changes

[](#apply-the-changes)

After editing the respective files, apply the changes by sourcing them:

```
source ~/.zshrc
source ~/.bash_profile
```

Usage
-----

[](#usage)

Env Replacer provides several options to manage your environment files efficiently:

### Options

[](#options)

- `--project` - Specify the environment name to replace. Example: `ua`
- `--service` - List the service names to search, separated by commas. Example: `case-service,dictionary-service,import-service`. You can also use shorter names for the services, such as: `case,dict,imp`
- `--restore` - If set to `true`, projects will revert to their previous `.env` files

### Example Command

[](#example-command)

Show current project configuration:

```
php er
er
```

To replace environment files for all projects, run the following command:

```
php er --project=ua
er ua
```

To replace environment files for the `case-service`, run the following command:

```
php er --project=ua --service=case-service
er ua case-service
```

To restore the previous `.env` file for `case-service`, run the following command:

```
php er --projects=case-service --restore=true
er --projects=case-service --restore=true
```

Env files
---------

[](#env-files)

By default, project `.env` files are stored in the `/Users/yourusername/env-replacer/concrete` directory. You can create a new configuration file, such as `test.env`, and then use it as follows:

```
php er --project=test
```

or shorter:

```
er test
```

This command will replace the existing `.env` file in every service with a merged version of `base.env` and `test.env`.

Custom services
---------------

[](#custom-services)

To override variables for specific service, create `service-name.env` file in the `/Users/yourusername/env-replacer/projects` directory with variables you want to add.

```
cat oauth-service.env

# OAUTH
AUTH_KEY=some value
```

License
-------

[](#license)

Env Replacer is open-source software licensed under the [MIT license](LICENSE).

---

By following the above steps, you should be able to easily install and use Env Replacer to manage your environment configurations across multiple projects efficiently.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance81

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~115 days

Recently: every ~144 days

Total

6

Last Release

102d ago

PHP version history (2 changes)v1.0.0PHP 8.\*.\*

v1.0.5PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/14628b2c4e7ec5383d74682d617a8da964478d19f14f22d07bb109ffc09ee7bd?d=identicon)[Kuharenko](/maintainers/Kuharenko)

---

Top Contributors

[![Kuharenko](https://avatars.githubusercontent.com/u/22325374?v=4)](https://github.com/Kuharenko "Kuharenko (11 commits)")

### Embed Badge

![Health badge](/badges/kukharenko-env-manager/health.svg)

```
[![Health](https://phpackages.com/badges/kukharenko-env-manager/health.svg)](https://phpackages.com/packages/kukharenko-env-manager)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

129.7k5](/packages/hardcastle-xrpl-php)

PHPackages © 2026

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