PHPackages                             brunoviana/dotenv-manipulator - 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. brunoviana/dotenv-manipulator

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

brunoviana/dotenv-manipulator
=============================

A mirror of absolutehh/dotenv-manipulator | This package can manipulate the .env file of a laravel project on runtime.

1.0.0(5y ago)0279MITPHPPHP &gt;=5.6.0

Since Jan 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/brunoviana/dotenv-manipulator)[ Packagist](https://packagist.org/packages/brunoviana/dotenv-manipulator)[ RSS](/packages/brunoviana-dotenv-manipulator/feed)WikiDiscussions main Synced 3w ago

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

.ENV Manipulator - Laravel 5
============================

[](#env-manipulator---laravel-5)

> This is a mirror of `absolutehh/dotenv-manipulator` that was deleted. All the credits to the authors mentioned in composer.json.

This package can manipulate the `.env` file on runtime.

[![GitHub release](https://camo.githubusercontent.com/3916a15e3a00b48152a5ae36f953a6540d0896b3cbfbb086dac4c57c8bedbd83/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6162736f6c75746568682f646f74656e762d6d616e6970756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/absolutehh/dotenv-manipulator/releases)[![GitHub license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/absolutehh/dotenv-manipulator/master/LICENSE)[![GitHub issues](https://camo.githubusercontent.com/2b69a86048db0fd1686858898ceab32052a125df446044a4b34eb3cb8be6610f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6162736f6c75746568682f646f74656e762d6d616e6970756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/absolutehh/dotenv-manipulator/issues)

[![StyleCI](https://camo.githubusercontent.com/20869ccdb120f5aa328c672cba7735249b6dd6cf74165f9f0a7aa402d94bbb76/68747470733a2f2f7374796c6563692e696f2f7265706f732f38353232353033352f736869656c64)](https://styleci.io/repos/85225035)[![Code Climate](https://camo.githubusercontent.com/7d06c8b370645f2a965d979b289d3e7a07e0fc417bcc7c4e99740e7e0e520f10/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f6162736f6c75746568682f646f74656e762d6d616e6970756c61746f722e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/absolutehh/dotenv-manipulator)

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

[](#installation)

Add it as dependency to composer `composer require absolutehh/dotenv-manipulator` and add the `\Absolute\DotEnvManipulator\ManipulatorServiceProvider` to your `config/app.php`

Usage
-----

[](#usage)

### Code

[](#code)

```
use Absolute\DotEnvManipulator\Libs\DotEnv;

$dotenv = new DotEnv('/ma/app/base/path', '.env');
// get current value
$value = $dotenv->get('YOUR_ENV_VAR');
// set and write value
$dotenv->set('YOUR_ENV_VAR', 'new_value')->write();
// sort variables in .env file
$dotenv->sort()->write();
```

### Command-Line

[](#command-line)

```
php artisan dotenv:get YOUR_ENV_VAR
php artisan dotenv:set YOUR_ENV_VAR --value=new_value
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1985d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1253250?v=4)[Bruno Viana](/maintainers/brunoviana)[@brunoviana](https://github.com/brunoviana)

---

Top Contributors

[![brunoviana](https://avatars.githubusercontent.com/u/1253250?v=4)](https://github.com/brunoviana "brunoviana (2 commits)")

---

Tags

laraveldotenv

### Embed Badge

![Health badge](/badges/brunoviana-dotenv-manipulator/health.svg)

```
[![Health](https://phpackages.com/badges/brunoviana-dotenv-manipulator/health.svg)](https://phpackages.com/packages/brunoviana-dotenv-manipulator)
```

###  Alternatives

[jackiedo/dotenv-editor

The .env file editor tool for Laravel 5.8+

2061.3M33](/packages/jackiedo-dotenv-editor)[brotzka/laravel-dotenv-editor

A package for editing the .env file in your Laravel root.

370163.9k4](/packages/brotzka-laravel-dotenv-editor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
