PHPackages                             h4ck3r31/getenv-typoscript - 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. h4ck3r31/getenv-typoscript

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

h4ck3r31/getenv-typoscript
==========================

This TYPO3 extension provides a simple way to access environment variables within TypoScript at places where stdWrap is not available.

v1.0.1(8y ago)1769GPL-2.0+PHP

Since Jul 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hofhaeckerei/getenv_typoscript)[ Packagist](https://packagist.org/packages/h4ck3r31/getenv-typoscript)[ RSS](/packages/h4ck3r31-getenv-typoscript/feed)WikiDiscussions master Synced 5d ago

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

TYPO3 Extension getenv\_typoscript
==================================

[](#typo3-extension-getenv_typoscript)

Description
-----------

[](#description)

This extension provides a simple way to access environment variables within TypoScript at places where `stdWrap` is not available. For instance on `TEXT`cObjects `page.10.data = getenv:MY_ENV_VARIABLE` works out of the box even without this extension. For scenarios where `stdWrap` is not available, this extension kicks in and allows to bridge the gap by using the `getenv` TypoScript modifier.

General usage: `property := getenv(MY_ENV_VARIABLE)`

Examples
--------

[](#examples)

The following example overrides TYPO3's baseUrl setting which does not support `stdWrap` out of the box and thus allows to make the setting more dynamic.

```
config.baseURL = getenv(MY_BASE_URL)

```

The next example allows to configure Solr server settings in TypoScript which as well don't support `stdWrap`.

```
plugin {
    tx_solr {
        solr {
            host := getenv(T3_SOLR_HOST)
            port := getenv(T3_SOLR_PORT)
            path := getenv(T3_SOLR_PATH)
            username := getenv(T3_SOLR_USERNAME)
            password := getenv(T3_SOLR_PASSWORD)
        }
    }
}

```

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

[](#installation)

```
composer require h4ck3r31/getenv-typoscript

```

or

```
cd typo3conf/ext/
git clone https://github.com/ohader/getenv_typoscript.git

```

Once the sources are available, the extension has to be enabled, e.g. using the Extension Manager or making use of [TYPO3 Console](https://github.com/TYPO3-Console/TYPO3-Console).

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3284d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/402145?v=4)[Oliver Hader](/maintainers/ohader)[@ohader](https://github.com/ohader)

---

Top Contributors

[![ohader](https://avatars.githubusercontent.com/u/402145?v=4)](https://github.com/ohader "ohader (12 commits)")

### Embed Badge

![Health badge](/badges/h4ck3r31-getenv-typoscript/health.svg)

```
[![Health](https://phpackages.com/badges/h4ck3r31-getenv-typoscript/health.svg)](https://phpackages.com/packages/h4ck3r31-getenv-typoscript)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k68](/packages/friendsoftypo3-content-blocks)[wazum/sluggi

TYPO3 extension for URL slug management with inline editing, auto-sync, locking, access control, and redirects

40543.5k](/packages/wazum-sluggi)[typo3/cms-scheduler

TYPO3 CMS Scheduler - Schedule tasks to run once or periodically at a specific time.

169.5M268](/packages/typo3-cms-scheduler)[typo3/cms-lowlevel

TYPO3 CMS Lowlevel - Technical analysis of the system. This includes raw database search, checking relations, counting pages and records etc.

178.3M358](/packages/typo3-cms-lowlevel)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.6M84](/packages/typo3-cms-redirects)[typo3/cms-form

TYPO3 CMS Form - Flexible TYPO3 frontend form framework that comes with a backend editor interface.

147.8M287](/packages/typo3-cms-form)

PHPackages © 2026

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