Download the PHP package fadllabanie/env-editor without Composer
On this page you can find all versions of the php package fadllabanie/env-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fadllabanie/env-editor
More information about fadllabanie/env-editor
Files in fadllabanie/env-editor
Package env-editor
Short Description A Laravel package to edit .env files from a web interface.
License MIT
Informations about the package env-editor
EnvEditor
Version | Features |
---|---|
V.1 | Edit env file |
EnvEditor is a Laravel package that allows you to easily view and edit your .env
file through a web interface.
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
Follow these steps to install the package into your Laravel project:
-
Install the package via Composer:
- Publish the package configuration and views:
This will create the config/env-editor
php file and publish the views required for the UI.
-
Add the following environment variables to your
.env
file: - Optionally, update the configuration in
config/env-editor
php to customize theusername
,password
, andIPs
restrictions.
Usage
-
Access the EnvEditor Interface: Visit the route
/env-editor/login
to log in and access the interface. -
Authentication: Use the username and password specified in the
.env
file (or the default ones set inconfig/env-editor.php
). -
Edit .env File: Once authenticated, you can view the current
.env
file, modify existing variables, or add new key-value pairs. - Logout: You can log out from the interface at any time using the logout button.
Security
-
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. - Session Time: The session expires after 2 minutes by default.
Configuration
After publishing the configuration file, you can modify the following settings in config/env-editor.php
:
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:
License
This package is open-source and licensed under the MIT License.
How to Use This:
- Copy the text to a
README.md
file in the root of your package directory. - Customize any parts (like the IPs, username, or password) according to your specific setup.
- Include instructions for how to install, configure, and use the package.
Let me know if you need any changes or further clarifications!