PHPackages                             ictools/env-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ictools/env-generator

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

ictools/env-generator
=====================

This package allows you to generate the env files needed in production by retrieving data from AWS Secret Manager

v1.3.1(1y ago)12.2k[3 PRs](https://github.com/ICTools/env-generator/pulls)MITPHPCI passing

Since Sep 8Pushed 1y agoCompare

[ Source](https://github.com/ICTools/env-generator)[ Packagist](https://packagist.org/packages/ictools/env-generator)[ RSS](/packages/ictools-env-generator/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (5)Versions (9)Used By (0)

Env Generator
=============

[](#env-generator)

The architecture imagined to use this component is a [monorepo](https://en.wikipedia.org/wiki/Monorepo) deployed on an AWS EC2 instance.

This tool allows you to download environment variables from AWS Secrets Manager and add them to your environment files. It is useful if you have several components.

```
monorepo
├── api                 # An api component
│   ├── env             # If ENV_GENERATOR_SPECIFIC_PATH=env
│   │   └── prod.env    # env-generator will generate this file
│   └── ...
├── redis
│   ├── env             # If ENV_GENERATOR_SPECIFIC_PATH=env
│   │   └── prod.env    # env-generator will generate this file
│   └── ...
├── ...
└── .env                # Specify here the environment variables for env-generator

```

Install
-------

[](#install)

### 1. Create a secret

[](#1-create-a-secret)

- Create a secret in [AWS Secrets Manager](https://eu-west-3.console.aws.amazon.com/secretsmanager) :
- You can have several keys/values in a secret
- Secret name: '**projectName/env/component/secretName**'\* ⚠

(\*) E.g.: mysite/prod/api/top\_secret

### 2. Create .env

[](#2-create-env)

Add this to the root of your project

```
ENV_GENERATOR_PROJECT_NAME=
ENV_GENERATOR_APP_ENV=
ENV_GENERATOR_AWS_USER_KEY=
ENV_GENERATOR_AWS_USER_SECRET=
ENV_GENERATOR_AWS_REGION=

### Optional ###
# This variable allows you to define a specific path for your .env files
ENV_GENERATOR_SPECIFIC_PATH=

```

### 3. Run

[](#3-run)

**Run this in the root of your project:**

#### With Docker

[](#with-docker)

```
docker run --env-file .env -v ${PWD}:/app davidgodefroid/env-generator:v1
```

#### Or with php script

[](#or-with-php-script)

```
composer require ictools/env-generator
php vendor/ictools/env-generator/src/generate.php
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance44

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81% 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 ~222 days

Total

5

Last Release

496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbc81a042faf899d12d1e48ccf5e8c1f9f540de898e4005c05dcd60d372f36dd?d=identicon)[DavidGodefroid](/maintainers/DavidGodefroid)

---

Top Contributors

[![DavidGodefroid](https://avatars.githubusercontent.com/u/23237525?v=4)](https://github.com/DavidGodefroid "DavidGodefroid (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M517](/packages/shopware-core)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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