PHPackages                             sgu-infocom-official/yii2-enveditor - 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. sgu-infocom-official/yii2-enveditor

ActiveYii2-component[Utility &amp; Helpers](/categories/utility)

sgu-infocom-official/yii2-enveditor
===================================

Yii2 Env editor

0432PHP

Since Sep 3Pushed 1y agoCompare

[ Source](https://github.com/SGU-infocom-official/yii2-enveditor)[ Packagist](https://packagist.org/packages/sgu-infocom-official/yii2-enveditor)[ RSS](/packages/sgu-infocom-official-yii2-enveditor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

yii2-enveditor
==============

[](#yii2-enveditor)

[![Latest Version](https://camo.githubusercontent.com/41b4e842ebd2cba9e82f148b9f0f9fd8eb55c03463dd95eefd2738847c6c5be6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f736775696e666f636f6d2f796969322d656e76656469746f722e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/sguinfocom/yii2-enveditor/tags)[![Total Downloads](https://camo.githubusercontent.com/c5c124cf4a121e52cdce9ec21ecca51bf793a46f7858cab7e97a0bd834a5e5d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736775696e666f636f6d2f796969322d656e76656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sguinfocom/yii2-enveditor)

Module and component to edit env file
-------------------------------------

[](#module-and-component-to-edit-env-file)

### Installation

[](#installation)

The preferred way to install **yii2-enveditor** is through [Composer](https://getcomposer.org/). Either add the following to the require section of your `composer.json` file:

`"sguinfocom/yii2-enveditor": "*"`

Or run:

`$ php composer.phar require sguinfocom/yii2-enveditor "*"`

You can manually install **yii2-enveditor** by [downloading the source in ZIP-format](https://github.com/sguinfocom/yii2-enveditor/archive/master.zip).

Update the config file

```
// app/config/web.php
return [
'components' => [
        'env' => [
            'class' => '\sguinfocom\enveditor\components\EnvComponent',
            'autoBackup' => true,
            'backupPath' => "backups",
        ],
    ],
    'modules' => [
        'enveditor' => [
            'class' => '\sguinfocom\enveditor\Module',
            'allowedIds' => "1,2,3"
        ],
    ],
];
```

Options
-------

[](#options)

**Module** Has the following options to modify it's behaviour:

- **allowedIds**: The userids who have access to the module, multiple ids with comma separated.

**Component** Has the following options to modify it's behaviour:

- **filePath**: The path to the .env file. Default to the basepath/.env
- **autoBackup**: Autobackup to true or false. Default to true
- **backupPath**: The folder where the backups need to be stored. Default to backups

Special thanks to [JackieDo](https://github.com/JackieDo/Laravel-Dotenv-Editor)
-------------------------------------------------------------------------------

[](#special-thanks-to-jackiedo)

Used his Laravel code to make it work in Yii2.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c188d056766f9b617e282fbd647c579da41dc96bf922bbdb3d8226defa5008b3?d=identicon)[Sitnikov-TV](/maintainers/Sitnikov-TV)

---

Top Contributors

[![Geoffry304](https://avatars.githubusercontent.com/u/3656871?v=4)](https://github.com/Geoffry304 "Geoffry304 (7 commits)")[![Litvin-Vlad](https://avatars.githubusercontent.com/u/79103185?v=4)](https://github.com/Litvin-Vlad "Litvin-Vlad (1 commits)")

### Embed Badge

![Health badge](/badges/sgu-infocom-official-yii2-enveditor/health.svg)

```
[![Health](https://phpackages.com/badges/sgu-infocom-official-yii2-enveditor/health.svg)](https://phpackages.com/packages/sgu-infocom-official-yii2-enveditor)
```

###  Alternatives

[aaronvangeffen/awstatsparser

A series of classes to help read and merge Awstats data files

112.8k](/packages/aaronvangeffen-awstatsparser)[sivka/paginator

bootstrap-4 fork of jasongrimes/php-paginator, a lightweight PHP paginator, for generating pagination controls in the style of Stack Overflow and Flickr. The 'first' and 'last' page links are shown inline as page numbers, and excess page numbers are replaced by ellipses.

141.3k](/packages/sivka-paginator)

PHPackages © 2026

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