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

ActiveLibrary

jeylabs/laravel-dotenv-editor
=============================

A package for editing the .env file in your Laravel root.

1.0.3(8y ago)3767↓100%[1 issues](https://github.com/jeylabs/laravel-dotenv-editor/issues)MITPHPPHP &gt;=5.5.9

Since Apr 12Pushed 8y ago4 watchersCompare

[ Source](https://github.com/jeylabs/laravel-dotenv-editor)[ Packagist](https://packagist.org/packages/jeylabs/laravel-dotenv-editor)[ Docs](https://github.com/jeylabs/laravel-dotenv-editor)[ RSS](/packages/jeylabs-laravel-dotenv-editor/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Edit your Laravel .env file
===========================

[](#edit-your-laravel-env-file)

This package offers you the possibility to edit your .env dynamically through a controller or model.

The current version ships with a graphical user interface based on VueJS to offer you a very simple implementation of all features.

List of available functions:

- check, if a given key exists
- get the value of a key
- get the complete content of your .env
- get the content as JSON
- change existing values
- add new key-value-pairs
- delete existing key-value-pairs
- create/restore/delete backups
- list all backups
- get the content of a backup
- enable auto-backups
- check, if auto-backups are enabled or not
- get and set a backup-path

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

[](#installation)

### Via composer require

[](#via-composer-require)

Install the package via the composer require command:

```
composer require jeylabs/laravel-dotenv-editor

```

### Add the package manually

[](#add-the-package-manually)

Add the following line to your composer.json require section:

```
"require": {
    //other packages
    "jeylabs/laravel-dotenv-editor": "1.*"
}

```

Then run the composer update command:

```
composer update

```

### After Installation

[](#after-installation)

Add the following line to your `config/app.php` providers:

```
Jeylabs\DotenvEditor\DotenvEditorServiceProvider::class,

```

Add the following line to your `config/app.php` aliases:

```
'DotenvEditor' => Jeylabs\DotenvEditor\Facades\DotenvEditor::class,

```

Finally you have to publish the config file and view via:

```
php artisan vendor:publish --provider="Jeylabs\DotenvEditor\DotenvEditorServiceProvider"

```

After an Update, maybe you have to force publish:

```
php artisan vendor:publish --provider="Jeylabs\DotenvEditor\DotenvEditorServiceProvider" --force

```

Be careful, this will overwrite all your published files! It's always better to delete the `config/dotenveditor.php`file manually and then run the `php artisan vendor:publish` command than to run the force version.

Now you can edit the config file and put in your values.

Config
------

[](#config)

Open the config/dotenveditor.php and fill it up with your values.

**Note:** I had an issue where I had to switch the web-middleware between `middleware` and `middleware_groups`. In Laravel 5.2, put the web-middleware in the `middleware` array. For Laravel 5.1 put it in the `middleware_groups` array.

The path to your .env should not be changed.

Deactivate GUI
--------------

[](#deactivate-gui)

If you don't want to use the graphical interface, you could deactivate it in the config.

Additional middleware
---------------------

[](#additional-middleware)

If you want to add more middlewares to the used routes, you could put them in the arrays.

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

3263d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ed0d4b2d9847ab8f33bfaa6f10e26f331104554bd9ede60a59d12ebc7cca873?d=identicon)[jeylabs](/maintainers/jeylabs)

---

Tags

laraveldotenvdotenv-editor

### Embed Badge

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

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

###  Alternatives

[jackiedo/dotenv-editor

The .env file editor tool for Laravel 5.8+

2051.2M29](/packages/jackiedo-dotenv-editor)[brotzka/laravel-dotenv-editor

A package for editing the .env file in your Laravel root.

375154.8k4](/packages/brotzka-laravel-dotenv-editor)[sixlive/dotenv-editor

A tool to edit phpdotenv files

741.4M10](/packages/sixlive-dotenv-editor)

PHPackages © 2026

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