PHPackages                             gadixsystem/envwriter - 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. gadixsystem/envwriter

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

gadixsystem/envwriter
=====================

Simple package to write environment

v1.1.0(4y ago)13.8k↓33.3%MITPHPPHP ^7.1.3|^8.0

Since May 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gadixsystem/envwriter)[ Packagist](https://packagist.org/packages/gadixsystem/envwriter)[ Docs](https://github.com/gadixsystem/envwriter)[ RSS](/packages/gadixsystem-envwriter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

EnvWriter
=========

[](#envwriter)

Laravel package to modify .env file.

**Installation:**
-----------------

[](#installation)

From your command line run:

*composer require gadixsystem/envwriter*

**Register the provider**

In config/app.php add the follow line:

```
 'providers' => [

        //EnvWriter
        gadixsystem\envwriter\EnvWriterServiceProvider::class,
  ]

```

**Basic usage**
---------------

[](#basic-usage)

In your controller add the usage statement:

```
use gadixsystem\envwriter\EnvWriter as Envwriter;

```

### **Methods**

[](#methods)

- **EnvWriter::change($key,$value,$trim)**

Change the value of a key, if the key does not exist EnvWriter will create a new key with this value, returns true or false. $trim by default is TRUE, if you need to set string with spaces use $trim = FALSE

- **EnvWriter::exists($key)**

Check if key exists or not, returns true or false.

- **EnvWriter::delete($key)**

Delete specific key, if the key does not exist it returns false

**Testing**

Run:

```
vendor/bin/phpunit vendor/gadixsystem/envwriter/src/tests

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~683 days

Total

2

Last Release

1517d ago

PHP version history (2 changes)v1.0.0PHP ^7.1.3

v1.1.0PHP ^7.1.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16864637?v=4)[Gabriel](/maintainers/gadixsystem)[@gadixsystem](https://github.com/gadixsystem)

---

Top Contributors

[![gadixsystem](https://avatars.githubusercontent.com/u/16864637?v=4)](https://github.com/gadixsystem "gadixsystem (5 commits)")

---

Tags

hacktoberfesthacktoberfest2021laravellaravel-packagephpphp-librarylaravelenvironmentenvmodify

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gadixsystem-envwriter/health.svg)

```
[![Health](https://phpackages.com/badges/gadixsystem-envwriter/health.svg)](https://phpackages.com/packages/gadixsystem-envwriter)
```

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)[harmonic/laravel-envcoder

:description

414.1k](/packages/harmonic-laravel-envcoder)

PHPackages © 2026

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