PHPackages                             sunnysideup/env-file-generator - 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. [Security](/categories/security)
4. /
5. sunnysideup/env-file-generator

ActiveSilverstripe-vendormodule[Security](/categories/security)

sunnysideup/env-file-generator
==============================

Set some basic variables using a yml file and this module will spit out a nicely formatted .env file

2.0.2(1w ago)0451BSD-3-ClausePHP

Since Feb 28Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/sunnysideup/silverstripe-env-file-generator)[ Packagist](https://packagist.org/packages/sunnysideup/env-file-generator)[ RSS](/packages/sunnysideup-env-file-generator/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (12)Used By (1)

.env file generator for Silverstripe Projects
=============================================

[](#env-file-generator-for-silverstripe-projects)

[![Build Status](https://camo.githubusercontent.com/1dcaf3ef56d24b3544fe2ecf3842d834eb82f96993b199a24934e1a9444de822/68747470733a2f2f7472617669732d63692e6f72672f73756e6e797369646575702f73696c7665727374726970652d656e762d66696c652d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sunnysideup/silverstripe-env-file-generator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/de0380949e07bb67fa642d8d8fb19c829cf647ee98615efc8b501acddc573bd5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e6e797369646575702f73696c7665727374726970652d656e762d66696c652d67656e657261746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunnysideup/silverstripe-env-file-generator/?branch=master)[![codecov.io](https://camo.githubusercontent.com/491e223ce48a125ce358652e5e9ec6a3da6b5cf5df323bfd3838ef8402877bf3/68747470733a2f2f636f6465636f762e696f2f6769746875622f73756e6e797369646575702f73696c7665727374726970652d656e762d66696c652d67656e657261746f722f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/sunnysideup/silverstripe-env-file-generator?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/d0734453378abd42cc1a055206c85f99d9cc47a55f00faba1f1bd0bde2ea576e/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f656e762d66696c652d67656e657261746f722f76657273696f6e)](https://packagist.org/packages/sunnysideup/env-file-generator)[![License](https://camo.githubusercontent.com/ec227cfd9f516b1e5f2a7623e454d336296c45f064865c3e8042190581b156c8/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f656e762d66696c652d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/sunnysideup/env-file-generator)[![Monthly Downloads](https://camo.githubusercontent.com/ccf8700264b1f17144be7ff18dd6d7c5079f3e162a67c2dff5d650ab849b86f1/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f656e762d66696c652d67656e657261746f722f642f6d6f6e74686c79)](https://packagist.org/packages/sunnysideup/env-file-generator)

Documentation
-------------

[](#documentation)

- [Developer Docs](docs/en/INDEX.md)
- [User Guide](docs/en/userguide.md)
- [API Docs](http://docs.ssmods.com/sunnysideup/env-file-generator/classes.xhtml)

Requirements
------------

[](#requirements)

See [composer.json](composer.json) for details.

### Suggested modules

[](#suggested-modules)

See [composer.json](composer.json) for details.

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

[](#installation)

```
composer require sunnysideup/env-file-generator
```

### Configuration

[](#configuration)

In the `_config` folder you will find the `env-file-generator.yml.example`file that shows options for the configuration of this module.

We recommend that you:

1. copy these `env-file-generator.yml.example` files into your `app/_config` folder (where available - otherwise search for `private static $` in the module to see what can be configured)
2. remove the .example extension,
3. delete the lines you do not care about, and
4. adjust the configurations that you would like to use.

Contributing
------------

[](#contributing)

We welcome any contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.

Paid assistance
---------------

[](#paid-assistance)

You can pay us to create an improved / adapted version of this module for your own projects. Please contact us if you like to find out more: [www.sunnysideup.co.nz](https://www.sunnysideup.co.nz). For example, we can write tests for this module.

Author
------

[](#author)

Sunny Side Up Ltd.

Looking for Silverstripe Modules?
---------------------------------

[](#looking-for-silverstripe-modules)

To find other modules, please visit [ssmods.com](https://ssmods.com/).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance89

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

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 ~48 days

Recently: every ~31 days

Total

11

Last Release

8d ago

Major Versions

1.1.0 → 2.0.02026-02-21

2.0.1 → 5.x-dev2026-02-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167154?v=4)[Sunny Side Up](/maintainers/sunnysideup)[@sunnysideup](https://github.com/sunnysideup)

---

Top Contributors

[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (7 commits)")

---

Tags

securityenvdevelopersdev-toolsdev-tool

### Embed Badge

![Health badge](/badges/sunnysideup-env-file-generator/health.svg)

```
[![Health](https://phpackages.com/badges/sunnysideup-env-file-generator/health.svg)](https://phpackages.com/packages/sunnysideup-env-file-generator)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k465.6M1.5k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k175.2M254](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41484.3M149](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

86611.1M25](/packages/spatie-laravel-csp)

PHPackages © 2026

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