PHPackages                             twoh/twoh\_base - 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. twoh/twoh\_base

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

twoh/twoh\_base
===============

This extension allows you to move the TYPO3 context into separate files instead of working with the `AdditionalConfiguration.php`.

1.0.5(5mo ago)0171GPL-2.0-or-laterPHPPHP ^8.2 &lt;8.4CI passing

Since Dec 7Pushed 5mo agoCompare

[ Source](https://github.com/twohreichel/twoh_base)[ Packagist](https://packagist.org/packages/twoh/twoh_base)[ GitHub Sponsors](https://github.com/twohreichel)[ RSS](/packages/twoh-twoh-base/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (1)

TWOH Base
=========

[](#twoh-base)

[![TYPO3 13](https://camo.githubusercontent.com/2cf6570821614808899422f68a66a381a2de1dd0746ba9cdba6155def1f4f396/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31332d6f72616e67652e737667)](https://get.typo3.org/version/13)[![PHP 8.2+](https://camo.githubusercontent.com/5fe05c705bf034839bda7651781e4d0a9d42f4a840478ca5e343873a0361bb89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d626c75652e737667)](https://www.php.net/)[![License: GPL v2](https://camo.githubusercontent.com/77e900ae34f8da9ccccc42662fce61a94ab07ddbfe3f7d066178e824f3673dbd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322d626c75652e737667)](https://www.gnu.org/licenses/gpl-2.0)

> This extension allows you to move the TYPO3 context into separate files instead of working with the `AdditionalConfiguration.php`.

---

📋 Features
----------

[](#-features)

- **Context-based Configuration** – Organize TYPO3 settings per environment (Development, Production, etc.)
- **Environment Variables Support** – Includes `.env` support for TYPO3's `AdditionalConfiguration.php`
- **Clean Project Setup** – Provides all needed files for setting up a TYPO3 project

---

⚙️ Requirements
---------------

[](#️-requirements)

RequirementVersionPHP^8.2Composer^2.0TYPO3^13.4---

🚀 Installation
--------------

[](#-installation)

### Via Composer (recommended)

[](#via-composer-recommended)

```
composer require twoh/twoh_base
```

### Manual Installation

[](#manual-installation)

1. Download the extension
2. Upload to `typo3conf/ext/twoh_base`
3. Activate in TYPO3 Extension Manager

---

📖 Usage
-------

[](#-usage)

### Configuration Structure

[](#configuration-structure)

Create a `config/` directory in your project root with environment-specific configuration files:

```
project-root/
├── config/
│   ├── default.php          # Base configuration (loaded first)
│   ├── development.php      # Development environment
│   ├── production.php       # Production environment
│   └── production.staging.php  # Production/Staging context

```

### Example Configuration File

[](#example-configuration-file)

```
