PHPackages                             maispace/environment - 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. maispace/environment

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

maispace/environment
====================

This extension provides environment depended helper functions for setting up TYPO3

00[1 PRs](https://github.com/mai-space-de/typo3-extension-environment/pulls)PHPCI passing

Since Mar 20Pushed 1mo agoCompare

[ Source](https://github.com/mai-space-de/typo3-extension-environment)[ Packagist](https://packagist.org/packages/maispace/environment)[ RSS](/packages/maispace-environment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

maispace/environment — TYPO3 Environment Helpers
================================================

[](#maispaceenvironment--typo3-environment-helpers)

[![CI](https://github.com/mai-space-de/typo3-extension-environment/actions/workflows/ci.yml/badge.svg)](https://github.com/mai-space-de/typo3-extension-environment/actions/workflows/ci.yml)[![PHP](https://camo.githubusercontent.com/187240af044d09d5b14a1d9d9ebdf3f7a993e4c7bc09bdb46b4ba661a891bf5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c7565)](https://www.php.net/)[![TYPO3](https://camo.githubusercontent.com/21d80c870513a277becf6f1adeec9900e1914d8d6e4fa0859e62a1d24900802e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31332e302532422d6f72616e6765)](https://typo3.org/)[![License: GPL v2](https://camo.githubusercontent.com/77e900ae34f8da9ccccc42662fce61a94ab07ddbfe3f7d066178e824f3673dbd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322d626c75652e737667)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)

This extension provides environment-dependent helper functions for setting up TYPO3. It allows you to easily manage different configurations for development, testing, and production environments, including support for DDEV.

Features
--------

[](#features)

- Environment-based configuration presets.
- DDEV environment detection and automatic configuration.
- Easy inclusion of context-dependent configuration files.
- Helpers for common TYPO3 settings (database, caching, logging, etc.).

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

[](#installation)

```
composer require maispace/environment
```

Usage
-----

[](#usage)

In your `public/index.php` (or wherever you initialize your environment), you can use the `ConfigProvider`:

```
use Maispace\Environment\ConfigProvider\ConfigProvider;

ConfigProvider::initialize();
```

Or with custom defaults:

```
ConfigProvider::initialize(false)
    ->useDevelopmentPreset()
    ->applyDefaults();
```

### Available Methods

[](#available-methods)

The `ConfigProvider` implements `ConfigProviderTraitInterface`, which provides many useful methods:

- `appendContextToSiteName()`: Appends the application context (e.g., \[Development\]) to the site name.
- `useDDEVConfiguration()`: Automatically configures database and other settings for DDEV.
- `useProductionPreset()` / `useDevelopmentPreset()`: Applies common settings for production or development.
- `initializeDatabaseConnection()`: Set up database connection.
- `initializeRedisCaching()`: Set up Redis caching.
- `includeContextDependentConfigurationFiles()`: Includes files from `config/system/additional/.php`.

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance59

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![mai-space](https://avatars.githubusercontent.com/u/38419872?v=4)](https://github.com/mai-space "mai-space (7 commits)")

### Embed Badge

![Health badge](/badges/maispace-environment/health.svg)

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

###  Alternatives

[mention/fast-doctrine-paginator

Fast Doctrine paginator for batching, infinite scrolling, Relay

18117.9k](/packages/mention-fast-doctrine-paginator)

PHPackages © 2026

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