geo-sot/laravel-env-editor

A laravel Package that supports .Env File, editing and backup

Package info

github.com/GeoSot/Laravel-EnvEditor

pkg:composer/geo-sot/laravel-env-editor

Statistics

Installs: 119 974

Dependents: 4

Suggesters: 0

Stars: 85

Open Issues: 4

3.2.0 2025-04-14 21:28 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 957fed077fb058de52a76400c854913349117ee5

  • Geo Sot <geo.sotis.woop@gmail.com>

laravelgeo-sotlaravel-env-editorEnvEditor


README

👁 Latest Version on Packagist
👁 Total Downloads
👁 Coverage Status
👁 Codacy Badge
👁 Maintainability
👁 License

Laravel .env Editor (plus GUI)

This Package allows to manage Laravel .env file values on the Fly (add, edit, delete keys), upload another .env or create backups
Management can be done through the user interface, or programmatically by using the EnvEditor Facade, without breaking the files structure.
The inspiration for this package was, Brotzka/laravel-dotenv-editor.

  1. Install package

    composer require geo-sot/laravel-env-editor
  2. Publish assets

    php artisan vendor:publish --provider=GeoSot\EnvEditor\ServiceProvider 

    This will publish all files:

    • config -> env-editor.php
    • views -> resources/views/vendor/env-editor/..
    • lang -> resources/lang/vendor/env-editor.php

    Or publish specific tags

     //Publish specific tag
     php artisan vendor:publish --tag=config
     php artisan vendor:publish --tag=translations
     php artisan vendor:publish --tag=views
     
     //Publish specific Tag from this Vendor
     php artisan vendor:publish --provider=GeoSot\EnvEditor\ServiceProvider --tag=config 
    
  • getEnvFileContent
  • keyExists
  • getKey
  • addKey
  • editKey
  • deleteKey
  • getAllBackUps
  • upload
  • backUpCurrent
  • getFilePath
  • deleteBackup
  • restoreBackUp

Note: user interface is disabled be default. You can enable it by changing the configuration option env-editor.route.enable

User Interface Contains three Tabs


👁 Overview


👁 AddKey


👁 EditKey


👁 DeleteKey


👁 Overview


👁 Overview


Upload

👁 Overview