{"id":16400325,"url":"https://github.com/geosot/laravel-enveditor","last_synced_at":"2025-04-07T10:28:56.084Z","repository":{"id":33224897,"uuid":"154574298","full_name":"GeoSot/Laravel-EnvEditor","owner":"GeoSot","description":"An alternative approach for .env files handling (UI icluded)","archived":false,"fork":false,"pushed_at":"2024-04-16T13:45:35.000Z","size":384,"stargazers_count":78,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-05-01T14:31:45.721Z","etag":null,"topics":["env-backup","gui","laravel","laravel-5-package","laravel-env-editor","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeoSot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-24T21:56:33.000Z","updated_at":"2024-06-18T18:36:00.414Z","dependencies_parsed_at":"2024-04-14T22:33:23.970Z","dependency_job_id":"6ae85c79-1d4c-487c-bc33-e3a182cb4f9d","html_url":"https://github.com/GeoSot/Laravel-EnvEditor","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2FLaravel-EnvEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2FLaravel-EnvEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2FLaravel-EnvEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoSot%2FLaravel-EnvEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeoSot","download_url":"https://codeload.github.com/GeoSot/Laravel-EnvEditor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247635071,"owners_count":20970664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["env-backup","gui","laravel","laravel-5-package","laravel-env-editor","vuejs2"],"created_at":"2024-10-11T05:27:18.153Z","updated_at":"2025-04-07T10:28:56.048Z","avatar_url":"https://github.com/GeoSot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Version on Packagist](https://img.shields.io/packagist/v/geo-sot/laravel-env-editor.svg?style=flat-square)](https://packagist.org/packages/geo-sot/laravel-env-editor)\n[![Total Downloads](https://img.shields.io/packagist/dt/geo-sot/laravel-env-editor.svg?style=flat-square)](https://packagist.org/packages/geo-sot/laravel-env-editor)\n[![Coverage Status](https://coveralls.io/repos/github/GeoSot/Laravel-EnvEditor/badge.svg)](https://coveralls.io/github/GeoSot/Laravel-EnvEditor)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bdb3a7b58b5d4efc9dbf07be99ae84df)](https://www.codacy.com/manual/geo.sotis/Laravel-EnvEditor?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=GeoSot/Laravel-EnvEditor\u0026amp;utm_campaign=Badge_Grade)\n[![Maintainability](https://api.codeclimate.com/v1/badges/f494c7292af300b0c7fc/maintainability)](https://codeclimate.com/github/GeoSot/Laravel-EnvEditor/maintainability)\n[![License](https://poser.pugx.org/geo-sot/laravel-env-editor/license)](https://packagist.org/packages/geo-sot/laravel-env-editor)\n# Laravel .env Editor (plus GUI) \nThis Package allows to manage Laravel .env file values on the Fly (add, edit, delete keys), upload another .env or create backups\n\u003cbr/\u003e\nManagement can be done through the user interface, or programmatically by using the `EnvEditor` Facade, without breaking the files structure. \n\u003cbr/\u003e\nThe inspiration for this package was, [Brotzka/laravel-dotenv-editor](https://github.com/Brotzka/laravel-dotenv-editor).\n\n*   [Installation](#installation)\n*   [Available Methods](#available_methods)\n*   [User Interface](#user_interface)\n\n## \u003ca name=\"installation\"\u003eInstallation:\u003c/a\u003e\n\n1. Install package\n    ```bash\n    composer require geo-sot/laravel-env-editor\n    ```\n2. Publish assets \n     ```bash\n     php artisan vendor:publish --provider=GeoSot\\EnvEditor\\ServiceProvider     \n      ```      \n      This will publish all files:\n    * config -\u003e env-editor.php\n    * views -\u003e resources/views/vendor/env-editor/..\n    * lang -\u003e resources/lang/vendor/env-editor.php\n      \n     Or publish specific tags\n\n    ```bash\n     //Publish specific tag\n     php artisan vendor:publish --tag=config\n     php artisan vendor:publish --tag=translations\n     php artisan vendor:publish --tag=views\n     \n     //Publish specific Tag from this Vendor\n     php artisan vendor:publish --provider=GeoSot\\EnvEditor\\ServiceProvider --tag=config  \n \n     ```\n     \n## \u003ca name=\"available_methods\"\u003eAvailable Methods:\u003c/a\u003e\n\n\u003e* getEnvFileContent\n\u003e* keyExists\n\u003e* getKey\n\u003e* addKey\n\u003e* editKey\n\u003e* deleteKey\n\u003e* getAllBackUps\n\u003e* upload\n\u003e* backUpCurrent\n\u003e* getFilePath\n\u003e* deleteBackup\n\u003e* restoreBackUp\n\n\u003cDetails\u003e\n\u003cSummary\u003eExample\u003c/Summary\u003e\n\n   ```php\n     \n    EnvEditor::getEnvFileContent($fileName='') \n    // Return The .env Data as Collection.\n    // If FileName Is provided it searches inside backups Directory and returns these results\n \n    EnvEditor::keyExists($key)\n    // Search key existance in .env\n    \n    EnvEditor::getKey(string $key, $default = null)    \n    // Get key value from .env,\n \n     EnvEditor::addKey($key, $value, array $options = [])\n     // Adds new Key in .env file\n     // As options can pass ['index'=\u003e'someNumericIndex'] in order to place the new key after an other and not in the end,\n     // or ['group'=\u003e'MAIL/APP etc'] to place the new key oat the end of the group \n \n     EnvEditor::editKey($key, $value)\n     // Edits existing key value\n \n     EnvEditor::deleteKey($key)    \n \n     EnvEditor::getAllBackUps()\n     // Returns all Backup files as collection with some info like, created_date, content etc.\n \n     EnvEditor::upload(UploadedFile $uploadedFile, $replaceCurrentEnv)\n     // Gets an UploadedFile and stores it as backup or as current .env\n \n     EnvEditor::backUpCurrent()\n     // Backups current .env\n \n     EnvEditor::getFilePath($fileName = '')\n     // Returns the full path of a backup file. \n     // If $fileName is empty returns the full path of the .env file\n \n     EnvEditor::deleteBackup($fileName)\n     \n \n     EnvEditor::restoreBackUp()\n     \n\n\n ```\n\u003c/Details\u003e\n \u003cbr/\u003e\n \n\n## \u003ca name=\"user_interface\"\u003eUser Interface\u003c/a\u003e\n\n**Note:** user interface is disabled be default. You can enable it by changing the configuration option `env-editor.route.enable`\n\nUser Interface Contains three Tabs \n\n -  [Current .env](#current_env)\n    * [Add new Key](#add_key)\n    * [Edit Key](#edit_key)\n    * [Delete new Key](#delete_key)\n - [Backups](#backups)\n   * [Backups Index](#backups_index)\n   * [Backup file details](#backup_file_details)\n - [Upload](#upload)\n \n \u003cbr/\u003e\n \n### \u003ca name=\"current_env\"\u003eCurrent .env \u003c/a\u003e\n![Overview](https://user-images.githubusercontent.com/22406063/73443980-60500600-4360-11ea-9d60-7ddf335cfa11.png)\n\u003cbr/\u003e\n\u003cbr/\u003e\n#### \u003ca name=\"add_key\"\u003eAdd new key\u003c/a\u003e\n![AddKey](https://user-images.githubusercontent.com/22406063/73443992-65ad5080-4360-11ea-9311-7ad53a207298.png)\n\u003cbr/\u003e\n\u003cbr/\u003e\n#### \u003ca name=\"edit_key\"\u003eEdit key\u003c/a\u003e\n![EditKey](https://user-images.githubusercontent.com/22406063/73443996-66de7d80-4360-11ea-879c-365d87b08610.png)\n\u003cbr/\u003e\n\u003cbr/\u003e\n#### \u003ca name=\"delete_key\"\u003eDelete key\u003c/a\u003e\n![DeleteKey](https://user-images.githubusercontent.com/22406063/73443999-68a84100-4360-11ea-8955-371fcfc0c1b5.png)\n\u003cbr/\u003e\n\u003cbr/\u003e\n### \u003ca name=\"backups\"\u003eBackups\u003c/a\u003e\n#### \u003ca name=\"backups_index\"\u003eBackups Index\u003c/a\u003e\n![Overview](https://user-images.githubusercontent.com/22406063/73444004-6a720480-4360-11ea-9260-2f3978b828ca.png)\n\u003cbr/\u003e\n\u003cbr/\u003e\n#### \u003ca name=\"backup_file_details\"\u003eBackup file details\u003c/a\u003e\n![Overview](https://user-images.githubusercontent.com/22406063/73444009-6c3bc800-4360-11ea-9f36-5d50571a84aa.png)\n\u003cbr/\u003e\n\u003cbr/\u003e\n### Upload\n![Overview](https://user-images.githubusercontent.com/22406063/73444015-6e058b80-4360-11ea-80b0-c60f837392ba.png)\n\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeosot%2Flaravel-enveditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeosot%2Flaravel-enveditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeosot%2Flaravel-enveditor/lists"}