PHPackages                             helhum/env-ts - 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. helhum/env-ts

AbandonedArchivedComposer-plugin[Utility &amp; Helpers](/categories/utility)

helhum/env-ts
=============

Writes environment variables as TypoScript constant file

0.3.0(9y ago)420.9k2MITPHPPHP &gt;=5.5.0

Since Nov 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/helhum/env-ts)[ Packagist](https://packagist.org/packages/helhum/env-ts)[ Docs](http://github.com/helhum/helhum/env-ts)[ RSS](/packages/helhum-env-ts/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

This package is deprecated and will not be maintained any more
==============================================================

[](#this-package-is-deprecated-and-will-not-be-maintained-any-more)

env ts [![Build Status](https://camo.githubusercontent.com/bb5fa557810844ce2ba59b33baf06baf1d3b0ec1af0b8f25e06ad34c3d2c66ad/68747470733a2f2f7472617669732d63692e6f72672f68656c68756d2f656e762d74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/helhum/env-ts)
=============================================================================================================================================================================================================================================================================

[](#env-ts-)

This is a composer plugin, that writes environment variables to a TypoScript constants file.

This package is the missing link to be able to provide different TypoScript settings for TYPO3 installations in different environments.

configuration options
---------------------

[](#configuration-options)

You configure env ts in the extra section of a `composer.json` in any package like that:

```
  "extra": {
      "helhum/env-ts": {
          "files": {
              "path/to/environment.t3s": [
                  "PAGE__ROOT",
                  "PAGE__IMPRINT",
                  "PAGE__CUSTOMER_LOGIN"
              ]
          },
          "prefix": "environment",
          "array-delimiter": "__",
          "lower-camel-case": true
      }
    }

```

#### `files` \[array\]

[](#files-array)

Multiple files (path relative to package dir) can be specified as key and which environment variable prefixes should be included. In the above example it would have been enough to specify the prefix `PAGE__`

#### `prefix` \[string\]

[](#prefix-string)

By default environment variables are passed as is to the constants file. But it is possible to specify a prefix for the constants. In the above example `environment.page.root` is written for env var `PAGE__ROOT`

*The default value* is `environment`

#### `array-delimiter` \[string\]

[](#array-delimiter-string)

By default environment variables are passed as is to the constants file. But it is possible to specify an array delimiter of the environment vars to be transformed into an array part of the constants. In the above example `environment.page.root` is written for env var `PAGE__ROOT`

*The default value* is `__`

#### `lower-camel-case` \[bool\]

[](#lower-camel-case-bool)

Whether the constant name should rather be lower camel cased than totally upper cased. In the above example `environment.page.customerLogin` is written for env var `PAGE__CUSTOMER_LOGIN`

*The default value* is `true`.

Feedback
--------

[](#feedback)

Any feedback is appreciated. Please write bug reports, feature request, create pull requests, or just drop me a "thank you" via [Twitter](https://twitter.com/helhum) or spread the word.

Thank you!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.9% 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 ~0 days

Total

5

Last Release

3512d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/904370?v=4)[Helmut Hummel](/maintainers/helhum)[@helhum](https://github.com/helhum)

---

Top Contributors

[![helhum](https://avatars.githubusercontent.com/u/904370?v=4)](https://github.com/helhum "helhum (10 commits)")[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (2 commits)")[![maximilian-walter](https://avatars.githubusercontent.com/u/1067260?v=4)](https://github.com/maximilian-walter "maximilian-walter (1 commits)")

---

Tags

composerenvTypoScript

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/helhum-env-ts/health.svg)

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

###  Alternatives

[helhum/dotenv-connector

Makes it possible to set environment variables for composer projects.

1634.9M40](/packages/helhum-dotenv-connector)[ffraenz/private-composer-installer

A composer install helper for private packages

2321.7M5](/packages/ffraenz-private-composer-installer)[philippbaschke/acf-pro-installer

An install helper for Advanced Custom Fields PRO

278724.6k](/packages/philippbaschke-acf-pro-installer)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M119](/packages/automattic-jetpack-autoloader)[gotoandplay/gravityforms-composer-installer

A composer install helper for Gravity Forms

32408.3k](/packages/gotoandplay-gravityforms-composer-installer)

PHPackages © 2026

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