PHPackages                             imoisey/envbuilder - 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. imoisey/envbuilder

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

imoisey/envbuilder
==================

Builder for .env file

0.1.1(5y ago)025MITPHPPHP &gt;=7.2

Since Jun 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/imoisey/envbuilder)[ Packagist](https://packagist.org/packages/imoisey/envbuilder)[ RSS](/packages/imoisey-envbuilder/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Imoisey\\Envbuilder
===================

[](#imoiseyenvbuilder)

Envbuilder is an easy library for building .env files.

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

[](#installation)

```
composer require imoisey/envbuilder
```

Usage
-----

[](#usage)

```
use Imoisey\Envbuilder\EnvBuilder;

$envBuilder = new EnvBuilder();

$envBuilder->add('APP_PORT', '5001');

$envBuilder
    ->add('DB_NAME', 'dbname')
    ->add('DB_USER', 'dbuser')
    ->add('DB_PASS', 'dbpass');

$envBuilder->build('.env');
```

.env:

```
APP_PORT: 5001
DB_NAME: dbname
DB_USER: dbuser
DB_PASS: dbpass
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Every ~2 days

Total

2

Last Release

2166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/608c56924030c77e3f77ca620a976594c47daaed8817bf14ed9a5d4c95f0b4b4?d=identicon)[imoisey](/maintainers/imoisey)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/imoisey-envbuilder/health.svg)

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

###  Alternatives

[xiaobopang/pinyin

汉字转带有声调的汉语拼音，汉字转无声调的汉语拼音，汉字转成汉语拼音首字母

315.1k](/packages/xiaobopang-pinyin)

PHPackages © 2026

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