| Package Data | |
|---|---|
| Maintainer Username: | Brotzka |
| Maintainer Contact: | fabianhagen87@gmail.com (Fabian Hagen) |
| Package Create Date: | 2016-05-12 |
| Package Last Update: | 2023-01-29 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-27 03:13:39 |
| Package Statistics | |
|---|---|
| Total Downloads: | 143,635 |
| Monthly Downloads: | 1,400 |
| Daily Downloads: | 24 |
| Total Stars: | 369 |
| Total Watchers: | 9 |
| Total Forks: | 79 |
| Total Open Issues: | 18 |
This package offers you the possibility to edit your .env dynamically through a controller or model.
The current version (2.x) ships with a graphical user interface based on VueJS to offer you a very simple implementation of all features.
List of available functions:
Here are some images showing the gui which ships with the current version:

Visit the Wiki-page to get more Information.
The following example shows an controller with a method, in which we change some values from the .env. Make sure, the entries you want to change, really exist in your .env.
namespace App\Http\Controllers;
use Brotzka\DotenvEditor\DotenvEditor;
class EnvController extends Controller
{
public function test(){
$env = new DotenvEditor();
$env->changeEnv([
'TEST_ENTRY1' => 'one_new_value',
'TEST_ENTRY2' => $anotherValue,
]);
}
}
For more exmaples visit the Wiki.