PHPackages                             benfiratkaya/laravel-setenv - 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. benfiratkaya/laravel-setenv

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

benfiratkaya/laravel-setenv
===========================

A .env editor for Laravel

1.0(4y ago)08MITPHPPHP ^7.3|^8.0

Since Apr 17Pushed 4y agoCompare

[ Source](https://github.com/voxelon/laravel-setenv)[ Packagist](https://packagist.org/packages/benfiratkaya/laravel-setenv)[ Docs](https://dacoto.github.io/laravel-setenv/)[ GitHub Sponsors](https://github.com/sponsors/dacoto97)[ RSS](/packages/benfiratkaya-laravel-setenv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel .env editor
===================

[](#laravel-env-editor)

[![Tests](https://camo.githubusercontent.com/c6940335ecd103d10b2a0289046b73d88a6f7fbe1d964ed701f30cdf88d18fac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6461636f746f2f6c61726176656c2d736574656e762f54657374732f6d61696e3f6c6162656c436f6c6f723d343434443536266c6162656c3d5465737473)](https://camo.githubusercontent.com/c6940335ecd103d10b2a0289046b73d88a6f7fbe1d964ed701f30cdf88d18fac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6461636f746f2f6c61726176656c2d736574656e762f54657374732f6d61696e3f6c6162656c436f6c6f723d343434443536266c6162656c3d5465737473)[![GitHub](https://camo.githubusercontent.com/705ce8b216bfb1f53cf8e78a1453673827cc7f4eaf6ff2739a28334ac64a5040/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461636f746f2f6c61726176656c2d736574656e763f6c6162656c436f6c6f723d343434443536266c6162656c3d4c6963656e7365)](https://camo.githubusercontent.com/705ce8b216bfb1f53cf8e78a1453673827cc7f4eaf6ff2739a28334ac64a5040/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6461636f746f2f6c61726176656c2d736574656e763f6c6162656c436f6c6f723d343434443536266c6162656c3d4c6963656e7365)[![GitHub release (latest by date)](https://camo.githubusercontent.com/51182c368e8fbb12d4206684aa8ea1f01eca1eda86bbca638596350acfe332e9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6461636f746f2f6c61726176656c2d736574656e763f6c6162656c436f6c6f723d343434443536266c6162656c3d52656c65617365)](https://camo.githubusercontent.com/51182c368e8fbb12d4206684aa8ea1f01eca1eda86bbca638596350acfe332e9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6461636f746f2f6c61726176656c2d736574656e763f6c6162656c436f6c6f723d343434443536266c6162656c3d52656c65617365)

Inspired by [JackieDo/Laravel-Dotenv-Editor](https://github.com/JackieDo/Laravel-Dotenv-Editor), it is a simplified version without a visual editor.

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

[](#installation)

You can install this package through [Composer](https://getcomposer.org) with the following steps:

#### Step 1 - Require package

[](#step-1---require-package)

At the root of your application directory, run the following command:

```
$ composer require dacoto/laravel-setenv
```

Usage
-----

[](#usage)

### Working with facade

[](#working-with-facade)

Laravel Set Env has a facade with the name `dacoto\SetEnv\Facades\SetEnv`. You can perform all operations through this facade.

**Example:**

```
