PHPackages                             makbari/dot-env-editor - 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. makbari/dot-env-editor

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

makbari/dot-env-editor
======================

An editor for changing dotEnv file content

0.1.4(8y ago)519.0k↓33.3%1MITPHPPHP &gt;=7.0

Since Sep 26Pushed 8y ago2 watchersCompare

[ Source](https://github.com/majidakbari/DotEnvEditor)[ Packagist](https://packagist.org/packages/makbari/dot-env-editor)[ RSS](/packages/makbari-dot-env-editor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

DotEnv Editor
=============

[](#dotenv-editor)

Simple editor for edit .env file content using php
--------------------------------------------------

[](#simple-editor-for-edit-env-file-content-using-php)

### Installation with Composer

[](#installation-with-composer)

```
curl -s http://getcomposer.org/installer | php
php composer.phar require makbari/dot-env-editor
```

### Usage

[](#usage)

All you need to do is to create an object of Handler class and pass it your config path.

### Example

[](#example)

```
$handler = new \makbari\DotEnvEditor\handler\Handler("Path_To_Your_Config");

$handler->add(['key' => 'value']);
```

### Available methods

[](#available-methods)

`overview()` - To list all .env content
`add()` - Add new key =&gt; value to .env file
`update()` - Update existing value in .env file
`getDetails()` - List all .env file content in json format
`createBackup()` - Create a backup from .env file
`deleteBackup()` - Delete an existing backup
`restore()` - Restore backup
`delete()` - Delete an existing key =&gt; value from .env file

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Every ~0 days

Total

5

Last Release

3156d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17963906?v=4)[Majid Akbari](/maintainers/majidakbari)[@majidakbari](https://github.com/majidakbari)

---

Top Contributors

[![majidakbari](https://avatars.githubusercontent.com/u/17963906?v=4)](https://github.com/majidakbari "majidakbari (5 commits)")

### Embed Badge

![Health badge](/badges/makbari-dot-env-editor/health.svg)

```
[![Health](https://phpackages.com/badges/makbari-dot-env-editor/health.svg)](https://phpackages.com/packages/makbari-dot-env-editor)
```

###  Alternatives

[open-southeners/laravel-companion-apps

Extend your Laravel applications with companions apps (Android, iOS, PWA...)

233.9k](/packages/open-southeners-laravel-companion-apps)

PHPackages © 2026

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