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

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

fadllabanie/env-editor
======================

A Laravel package to edit .env files from a web interface.

v1.0.7(1y ago)3111MITBladePHP ^8.0

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Fadllabanie/Laravel-Env-Editor)[ Packagist](https://packagist.org/packages/fadllabanie/env-editor)[ RSS](/packages/fadllabanie-env-editor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

EnvEditor
=========

[](#enveditor)

VersionFeaturesV.1Edit env file**EnvEditor** is a Laravel package that allows you to easily view and edit your `.env` file through a web interface.

Features
--------

[](#features)

- View and edit `.env` variables in a form-based interface.
- Add new key-value pairs.
- Remove existing keys.
- IP restriction for security.
- Username/password authentication.

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

[](#installation)

Follow these steps to install the package into your Laravel project:

1. Install the package via Composer:

```
composer require fadllabanie/env-editor
```

2. Publish the package configuration and views:

```
php artisan vendor:publish --tag=config --provider="Fadllabanie\EnvEditor\EnvEditorServiceProvider"
```

This will create the `config/env-editor` php file and publish the views required for the UI.

3. Add the following environment variables to your `.env` file:

```
ENV_EDITOR_ENABLE=true
ENV_EDITOR_USERNAME=admin
ENV_EDITOR_PASSWORD=password
ENV_EDITOR_WHITE_IPS_LIST=127.0.0.1
```

4. Optionally, update the configuration in `config/env-editor` php to customize the `username`, `password`, and `IPs` restrictions.

Usage
=====

[](#usage)

1. Access the EnvEditor Interface: Visit the route `/env-editor/login` to log in and access the interface.
2. Authentication: Use the username and password specified in the `.env` file (or the default ones set in `config/env-editor.php`).
3. Edit .env File: Once authenticated, you can view the current `.env` file, modify existing variables, or add new key-value pairs.
4. Logout: You can log out from the interface at any time using the logout button.

Security
========

[](#security)

1. IP Restriction: You can restrict access by IP using the `ENV_EDITOR_WHITE_IPS_LIST` environment variable. Add a comma-separated list of allowed IP addresses.
2. Session Time: The session expires after **2 minutes** by default.

Configuration
=============

[](#configuration)

After publishing the configuration file, you can modify the following settings in `config/env-editor.php`:

```
return [
    'env-editor-enable' => env('ENV_EDITOR_ENABLE', true),
    'white_ips_list' => env('ENV_EDITOR_WHITE_IPS_LIST', ['127.0.0.1']),
    'username' => env('ENV_EDITOR_USERNAME', 'admin'),
    'password' => env('ENV_EDITOR_PASSWORD', 'password')
];
```

Clearing Config Cache
=====================

[](#clearing-config-cache)

you make changes to the `.env` file or `config/env-editor.php`, make sure to clear the config cache to reflect the updates:

```
php artisan config:clear
```

License
=======

[](#license)

This package is open-source and licensed under the MIT License.

### How to Use This:

[](#how-to-use-this)

1. **Copy the text** to a `README.md` file in the root of your package directory.
2. **Customize** any parts (like the IPs, username, or password) according to your specific setup.
3. **Include instructions** for how to install, configure, and use the package.

Let me know if you need any changes or further clarifications!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

4

Last Release

582d ago

PHP version history (2 changes)v1.0.4PHP ^7.4|^8.0

v1.0.7PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1c7750e3903ccaec3041f1b3374de4af1c927271e5f9155cfddfd4de48108e6?d=identicon)[fadllabanie](/maintainers/fadllabanie)

---

Top Contributors

[![fdl-labanie](https://avatars.githubusercontent.com/u/135807531?v=4)](https://github.com/fdl-labanie "fdl-labanie (12 commits)")

### Embed Badge

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

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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