PHPackages                             kortdev/dotenv-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. kortdev/dotenv-editor

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

kortdev/dotenv-editor
=====================

Dotenv Description

v1.0.0(5y ago)020MITPHPPHP ^7.4|^8.0

Since Apr 22Pushed 5y agoCompare

[ Source](https://github.com/kortdev/dotenv-editor)[ Packagist](https://packagist.org/packages/kortdev/dotenv-editor)[ Docs](https://github.com/kortdev/dotenv-editor)[ Fund](https://kort.dev)[ GitHub Sponsors](https://github.com/kortdev)[ RSS](/packages/kortdev-dotenv-editor/feed)WikiDiscussions master Synced 1mo ago

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

Dotenv Description
==================

[](#dotenv-description)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c6b502a4783f8198d1766f601cb0602837c78b8d79d224703501abf065330314/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f72746465762f646f74656e762d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kortdev/dotenv-editor)[![Total Downloads](https://camo.githubusercontent.com/7f513a38f1fe1b497e7533ef7cf332565c1a0df01072e9f92cf95445c6baea92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f72746465762f646f74656e762d656469746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kortdev/dotenv-editor)

Laravel Dotenv Editor is the .env file editor (or files with same structure and syntax). Now you can easily edit .env files with the following features:

- Read raw content of file.
- Read lines of file content.
- Read setters (key-value-pair) of file content.
- Determine one key name of existing setter.
- Append empty lines to file.
- Append comment lines to file.
- Append new or update exists setter lines to file.
- Delete existing setter line in file.

Original package by [JackieDo/Laravel-Dotenv-Editor](https://github.com/JackieDo/Laravel-Dotenv-Editor)

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

[](#installation)

You can install the package via composer:

```
composer require kortdev/dotenv-editor
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [LTKort](https://github.com/Kortdev)
- [JackieDo](https://github.com/JackieDo/Laravel-Dotenv-Editor)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

1852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/daefe6868d453c281f96c87836803eebdd835854bedb4a9d1309bc8d9c8f0c7b?d=identicon)[kort.dev](/maintainers/kort.dev)

---

Top Contributors

[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (3 commits)")

---

Tags

dotenv-editorkortdev

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kortdev-dotenv-editor/health.svg)

```
[![Health](https://phpackages.com/badges/kortdev-dotenv-editor/health.svg)](https://phpackages.com/packages/kortdev-dotenv-editor)
```

###  Alternatives

[jackiedo/dotenv-editor

The .env file editor tool for Laravel 5.8+

2041.2M31](/packages/jackiedo-dotenv-editor)[sixlive/dotenv-editor

A tool to edit phpdotenv files

761.5M11](/packages/sixlive-dotenv-editor)[terminal42/contao-url-rewrite

URL Rewrite bundle for Contao Open Source CMS

1595.3k3](/packages/terminal42-contao-url-rewrite)

PHPackages © 2026

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